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

Unified Diff: test/mjsunit/get-prototype-of.js

Issue 1186733002: Add %TypedArray% to proto chain (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: changes from arv's review Created 5 years, 6 months 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 | « test/mjsunit/es6/built-in-accessor-names.js ('k') | test/mjsunit/harmony/sharedarraybuffer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/get-prototype-of.js
diff --git a/test/mjsunit/get-prototype-of.js b/test/mjsunit/get-prototype-of.js
index 47edcb0a771123f03dbd275ccf20a3872f2d58bc..95bd157a518ae90643a5045d4e7c0f4f3d27b0a6 100644
--- a/test/mjsunit/get-prototype-of.js
+++ b/test/mjsunit/get-prototype-of.js
@@ -82,12 +82,7 @@ var functions = [
// DataView,
Date,
Error,
- Float32Array,
- Float64Array,
Function,
- Int16Array,
- Int32Array,
- Int8Array,
Map,
Number,
Object,
@@ -96,10 +91,6 @@ var functions = [
Set,
String,
// Symbol, not constructible
- Uint16Array,
- Uint32Array,
- Uint8Array,
- Uint8ClampedArray,
WeakMap,
WeakSet,
];
@@ -109,6 +100,23 @@ for (var f of functions) {
assertPrototypeOf(new f(), f.prototype);
}
+var typedArrayConstructors = [
+ Float32Array,
+ Float64Array,
+ Int16Array,
+ Int32Array,
+ Int8Array,
+ Uint16Array,
+ Uint32Array,
+ Uint8Array,
+ Uint8ClampedArray,
+];
+
+for (var t of typedArrayConstructors) {
+ assertPrototypeOf(t, Uint8Array.__proto__);
+ assertPrototypeOf(new t(), t.prototype);
+}
+
var p = new Promise(function() {});
assertPrototypeOf(p, Promise.prototype);
« no previous file with comments | « test/mjsunit/es6/built-in-accessor-names.js ('k') | test/mjsunit/harmony/sharedarraybuffer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698