| Index: test/mjsunit/stack-traces.js
|
| diff --git a/test/mjsunit/stack-traces.js b/test/mjsunit/stack-traces.js
|
| index a30a51548dfc40dbf8207501904f1eb6ef2daef5..914f1ba188d4b6a2da6a51ad43a2c77f556ea2b1 100644
|
| --- a/test/mjsunit/stack-traces.js
|
| +++ b/test/mjsunit/stack-traces.js
|
| @@ -381,6 +381,15 @@ assertEquals(undefined, error.stack);
|
| error = new Error();
|
| Error.captureStackTrace(error);
|
|
|
| +// Check property descriptor.
|
| +var o = {};
|
| +Error.captureStackTrace(o);
|
| +assertEquals([], Object.keys(o));
|
| +var desc = Object.getOwnPropertyDescriptor(o, "stack");
|
| +assertFalse(desc.writable);
|
| +assertFalse(desc.enumerable);
|
| +assertTrue(desc.configurable);
|
| +
|
| // Check that exceptions thrown within prepareStackTrace throws an exception.
|
| Error.prepareStackTrace = function(e, frames) { throw 42; }
|
|
|
|
|