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

Unified Diff: test/mjsunit/harmony/sharedarraybuffer.js

Issue 1501673002: Revert of [es6] Correctify and 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
« no previous file with comments | « test/mjsunit/harmony/reflect-get-prototype-of.js ('k') | test/mjsunit/regress/regress-crbug-522496.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/sharedarraybuffer.js
diff --git a/test/mjsunit/harmony/sharedarraybuffer.js b/test/mjsunit/harmony/sharedarraybuffer.js
index a7917e0020c9b2002208cbffac742d81fa5bf187..bac42681ab32fd1f521b976e65c96fbb79b2cd2a 100644
--- a/test/mjsunit/harmony/sharedarraybuffer.js
+++ b/test/mjsunit/harmony/sharedarraybuffer.js
@@ -40,7 +40,7 @@
TestByteLength(256, 256);
TestByteLength(2.567, 2);
- TestByteLength("0", 0);
+ TestByteLength("abc", 0);
TestByteLength(0, 0);
@@ -53,7 +53,7 @@
}, RangeError);
*/
- var sab = new SharedArrayBuffer(0);
+ var sab = new SharedArrayBuffer();
assertSame(0, sab.byteLength);
assertEquals("[object SharedArrayBuffer]",
Object.prototype.toString.call(sab));
@@ -548,7 +548,7 @@
if (obj)
assertArrayEquals([], props(obj));
}
-TestEnumerable(ArrayBuffer, new SharedArrayBuffer(0));
+TestEnumerable(ArrayBuffer, new SharedArrayBuffer());
for(i = 0; i < typedArrayConstructors.length; i++) {
TestEnumerable(typedArrayConstructors[i]);
}
« no previous file with comments | « test/mjsunit/harmony/reflect-get-prototype-of.js ('k') | test/mjsunit/regress/regress-crbug-522496.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698