| Index: test/mjsunit/harmony/sharedarraybuffer.js
|
| diff --git a/test/mjsunit/harmony/sharedarraybuffer.js b/test/mjsunit/harmony/sharedarraybuffer.js
|
| index 7f7f8fb2d5ab89e1f9d3cad8f3cf048d7e831299..bac42681ab32fd1f521b976e65c96fbb79b2cd2a 100644
|
| --- a/test/mjsunit/harmony/sharedarraybuffer.js
|
| +++ b/test/mjsunit/harmony/sharedarraybuffer.js
|
| @@ -204,7 +204,7 @@
|
| assertEquals("[object " + constr.name + "]",
|
| Object.prototype.toString.call(a));
|
| var desc = Object.getOwnPropertyDescriptor(
|
| - constr.prototype.__proto__, Symbol.toStringTag);
|
| + constr.prototype, Symbol.toStringTag);
|
| assertTrue(desc.configurable);
|
| assertFalse(desc.enumerable);
|
| assertFalse(!!desc.writable);
|
| @@ -310,14 +310,17 @@
|
|
|
| function TestPropertyTypeChecks(constructor) {
|
| function CheckProperty(name) {
|
| - var d = Object.getOwnPropertyDescriptor(constructor.prototype.__proto__,
|
| - name);
|
| + var d = Object.getOwnPropertyDescriptor(constructor.prototype, name);
|
| var o = {};
|
| assertThrows(function() {d.get.call(o);}, TypeError);
|
| for (var i = 0; i < typedArrayConstructors.length; i++) {
|
| var ctor = typedArrayConstructors[i];
|
| var a = MakeSharedTypedArray(ctor, 10);
|
| - d.get.call(a); // shouldn't throw
|
| + if (ctor === constructor) {
|
| + d.get.call(a); // shouldn't throw
|
| + } else {
|
| + assertThrows(function() {d.get.call(a);}, TypeError);
|
| + }
|
| }
|
| }
|
|
|
|
|