Index: test/mjsunit/es6/built-in-accessor-names.js |
diff --git a/test/mjsunit/es6/built-in-accessor-names.js b/test/mjsunit/es6/built-in-accessor-names.js |
index d902ae6700aa52a93cadaa783f45d254085aec33..c5f8cec3c0649ffb031a20827e7d0cf992ee0780 100644 |
--- a/test/mjsunit/es6/built-in-accessor-names.js |
+++ b/test/mjsunit/es6/built-in-accessor-names.js |
@@ -23,25 +23,13 @@ |
assertGetterName('get size', Map.prototype, 'size'); |
-let typedArrays = [ |
- Uint8Array, |
- Int8Array, |
- Uint16Array, |
- Int16Array, |
- Uint32Array, |
- Int32Array, |
- Float32Array, |
- Float64Array, |
- Uint8ClampedArray |
-]; |
+let TypedArray = Uint8Array.__proto__; |
-for (let f of typedArrays) { |
- assertGetterName('get buffer', f.prototype, 'buffer'); |
- assertGetterName('get byteOffset', f.prototype, 'byteOffset'); |
- assertGetterName('get byteLength', f.prototype, 'byteLength'); |
- assertGetterName('get length', f.prototype, 'length'); |
- assertGetterName('get [Symbol.toStringTag]', f.prototype, Symbol.toStringTag); |
-} |
+assertGetterName('get buffer', TypedArray.prototype, 'buffer'); |
+assertGetterName('get byteOffset', TypedArray.prototype, 'byteOffset'); |
+assertGetterName('get byteLength', TypedArray.prototype, 'byteLength'); |
+assertGetterName('get length', TypedArray.prototype, 'length'); |
+assertGetterName('get [Symbol.toStringTag]', TypedArray.prototype, Symbol.toStringTag); |
assertGetterName('get buffer', DataView.prototype, 'buffer'); |