Index: test/mjsunit/mjsunit.js |
diff --git a/test/mjsunit/mjsunit.js b/test/mjsunit/mjsunit.js |
index 07c4e7eff37566333c9ad2116b6e02e8abae65f4..558282f52bb39126003503fac3aedeb94f27ecff 100644 |
--- a/test/mjsunit/mjsunit.js |
+++ b/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 () { |