Index: test/mjsunit/harmony/typedarrays-of.js |
diff --git a/test/mjsunit/harmony/typedarrays-of.js b/test/mjsunit/harmony/typedarrays-of.js |
index 66f5e2a07e6432b40184af92fd47ea3e1a51f41a..9df1d30c8eed87f3fc427a505d98e70078d5d76d 100644 |
--- a/test/mjsunit/harmony/typedarrays-of.js |
+++ b/test/mjsunit/harmony/typedarrays-of.js |
@@ -15,16 +15,8 @@ |
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. |
@@ -119,7 +111,7 @@ |
assertEquals("pass", status); |
// Check superficial features of %TypedArray%.of. |
- var desc = getPropertyDescriptor(constructor, "of", 1); |
+ var desc = Object.getOwnPropertyDescriptor(constructor, "of"); |
assertEquals(desc.configurable, false); |
assertEquals(desc.enumerable, false); |