summaryrefslogtreecommitdiff
path: root/lib/assert.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/assert.js')
-rw-r--r--lib/assert.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/assert.js b/lib/assert.js
index 99c000e316..51ee781b59 100644
--- a/lib/assert.js
+++ b/lib/assert.js
@@ -240,6 +240,7 @@ function getErrMessage(message, fn) {
// We only need the stack trace. To minimize the overhead use an object
// instead of an error.
const err = {};
+ // eslint-disable-next-line no-restricted-syntax
Error.captureStackTrace(err, fn);
Error.stackTraceLimit = tmpLimit;