| 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);
|
|
|
|
|