| Index: test/mjsunit/stack-traces-overflow.js
|
| diff --git a/test/mjsunit/stack-traces-overflow.js b/test/mjsunit/stack-traces-overflow.js
|
| index 7722e93bd26129f91c2dae44b8294fbb76806c19..b44bfcd8ae6defcf832202bc00cf432acd7b6071 100644
|
| --- a/test/mjsunit/stack-traces-overflow.js
|
| +++ b/test/mjsunit/stack-traces-overflow.js
|
| @@ -57,6 +57,13 @@ try {
|
| }
|
|
|
|
|
| +function assertStackAccessors(error_object, type) {
|
| + assertSame(type,
|
| + typeof Object.getOwnPropertyDescriptor(error_object, "stack").get);
|
| + assertSame(type,
|
| + typeof Object.getOwnPropertyDescriptor(error_object, "stack").set);
|
| +}
|
| +
|
| // Check setting/getting stack property on the prototype chain.
|
| function testErrorPrototype(prototype) {
|
| var object = {};
|
| @@ -64,6 +71,11 @@ function testErrorPrototype(prototype) {
|
| object.stack = "123";
|
| assertEquals("123", object.stack);
|
| assertTrue("123" != prototype.stack);
|
| + // Check that the accessors on the prototype error object are untouched.
|
| + assertStackAccessors(prototype, "function");
|
| + assertEquals("123", Object.getOwnPropertyDescriptor(object, "stack").value);
|
| + prototype.stack = "abc";
|
| + assertStackAccessors(prototype, "undefined");
|
| }
|
|
|
| try {
|
|
|