| Index: test/mjsunit/stack-traces.js
|
| diff --git a/test/mjsunit/stack-traces.js b/test/mjsunit/stack-traces.js
|
| index a30a51548dfc40dbf8207501904f1eb6ef2daef5..6b8bdef97a3861f36698504fd3466111a035a771 100644
|
| --- a/test/mjsunit/stack-traces.js
|
| +++ b/test/mjsunit/stack-traces.js
|
| @@ -386,3 +386,8 @@ Error.prepareStackTrace = function(e, frames) { throw 42; }
|
|
|
| var x = {}
|
| assertThrows(() => Error.captureStackTrace(x));
|
| +
|
| +// Check that we don't crash when CaptureSimpleStackTrace returns undefined.
|
| +var o = {};
|
| +Error.stackTraceLimit = "not a number";
|
| +Error.captureStackTrace(o);
|
|
|