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 c5f8cec3c0649ffb031a20827e7d0cf992ee0780..d902ae6700aa52a93cadaa783f45d254085aec33 100644 |
--- a/test/mjsunit/es6/built-in-accessor-names.js |
+++ b/test/mjsunit/es6/built-in-accessor-names.js |
@@ -23,13 +23,25 @@ |
assertGetterName('get size', Map.prototype, 'size'); |
-let TypedArray = Uint8Array.__proto__; |
+let typedArrays = [ |
+ Uint8Array, |
+ Int8Array, |
+ Uint16Array, |
+ Int16Array, |
+ Uint32Array, |
+ Int32Array, |
+ Float32Array, |
+ Float64Array, |
+ Uint8ClampedArray |
+]; |
-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); |
+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', DataView.prototype, 'buffer'); |