diff options
Diffstat (limited to 'deps/v8/test/mjsunit/mjsunit.js')
-rw-r--r-- | deps/v8/test/mjsunit/mjsunit.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/mjsunit.js b/deps/v8/test/mjsunit/mjsunit.js index 07c4e7eff3..558282f52b 100644 --- a/deps/v8/test/mjsunit/mjsunit.js +++ b/deps/v8/test/mjsunit/mjsunit.js @@ -27,6 +27,8 @@ function MjsUnitAssertionError(message) { this.message = message; + // This allows fetching the stack trace using TryCatch::StackTrace. + this.stack = new Error("").stack; } MjsUnitAssertionError.prototype.toString = function () { |