| Index: test/mjsunit/harmony/typedarrays-of.js
|
| diff --git a/test/mjsunit/harmony/typedarrays-of.js b/test/mjsunit/harmony/typedarrays-of.js
|
| index 9df1d30c8eed87f3fc427a505d98e70078d5d76d..66f5e2a07e6432b40184af92fd47ea3e1a51f41a 100644
|
| --- a/test/mjsunit/harmony/typedarrays-of.js
|
| +++ b/test/mjsunit/harmony/typedarrays-of.js
|
| @@ -15,8 +15,16 @@ var typedArrayConstructors = [
|
| Int32Array,
|
| Uint8ClampedArray,
|
| Float32Array,
|
| - Float64Array];
|
| + Float64Array
|
| +];
|
|
|
| +function getPropertyDescriptor(object, field, expectedDepth) {
|
| + for (var depth = 0; depth < expectedDepth; depth++) {
|
| + assertFalse(Object.hasOwnProperty(object, field));
|
| + object = object.__proto__;
|
| + }
|
| + return Object.getOwnPropertyDescriptor(object, field);
|
| +}
|
|
|
| function TestTypedArrayOf(constructor) {
|
| // %TypedArray%.of basics.
|
| @@ -111,7 +119,7 @@ function TestTypedArrayOf(constructor) {
|
| assertEquals("pass", status);
|
|
|
| // Check superficial features of %TypedArray%.of.
|
| - var desc = Object.getOwnPropertyDescriptor(constructor, "of");
|
| + var desc = getPropertyDescriptor(constructor, "of", 1);
|
|
|
| assertEquals(desc.configurable, false);
|
| assertEquals(desc.enumerable, false);
|
|
|