| Index: test/mjsunit/function-bind.js
|
| diff --git a/test/mjsunit/function-bind.js b/test/mjsunit/function-bind.js
|
| index 4a8f2d2a62443234d8488a0fcdeaf5f89d7fc7e0..23dacf157e6ea85064d4b69a1718c1ddcea1470e 100644
|
| --- a/test/mjsunit/function-bind.js
|
| +++ b/test/mjsunit/function-bind.js
|
| @@ -268,14 +268,18 @@ assertEquals([true, 0, undefined], s());
|
|
|
| // Check that property descriptors are correct (unconfigurable, unenumerable,
|
| // and both get and set is the ThrowTypeError function).
|
| -var cdesc = Object.getOwnPropertyDescriptor(f, "caller");
|
| -var adesc = Object.getOwnPropertyDescriptor(f, "arguments");
|
| +//
|
| +// Poisoned accessors are no longer own properties --- get them from the
|
| +// prototype
|
| +var f_proto = Object.getPrototypeOf(f);
|
| +var cdesc = Object.getOwnPropertyDescriptor(f_proto, "caller");
|
| +var adesc = Object.getOwnPropertyDescriptor(f_proto, "arguments");
|
|
|
| assertFalse(cdesc.enumerable);
|
| -assertFalse(cdesc.configurable);
|
| +assertTrue(cdesc.configurable);
|
|
|
| assertFalse(adesc.enumerable);
|
| -assertFalse(adesc.configurable);
|
| +assertTrue(adesc.configurable);
|
|
|
| assertSame(cdesc.get, cdesc.set);
|
| assertSame(cdesc.get, adesc.get);
|
|
|