Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: test/mjsunit/es6/built-in-accessor-names.js

Issue 1558663002: Reland of Use ES2015-style TypedArray prototype chain (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/messages.h ('k') | test/mjsunit/es6/classes-subclass-builtins.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
« no previous file with comments | « src/messages.h ('k') | test/mjsunit/es6/classes-subclass-builtins.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698