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

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

Issue 1500543002: [es6] Unify ArrayBuffer and SharedArrayBuffer constructors. (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
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..a6acf670d177df615868657bd11f375f2b81d8ea 100644
--- a/test/mjsunit/get-prototype-of.js
+++ b/test/mjsunit/get-prototype-of.js
@@ -77,7 +77,6 @@ for (var f of errorFunctions) {
// Builtin constructors.
var functions = [
Array,
- ArrayBuffer,
Boolean,
// DataView,
Date,
@@ -112,5 +111,8 @@ for (var f of functions) {
var p = new Promise(function() {});
assertPrototypeOf(p, Promise.prototype);
-var dv = new DataView(new ArrayBuffer());
+var ab = new ArrayBuffer(0);
+assertPrototypeOf(ab, ArrayBuffer.prototype);
+
+var dv = new DataView(ab);
assertPrototypeOf(dv, DataView.prototype);

Powered by Google App Engine
This is Rietveld 408576698