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

Unified Diff: test/mjsunit/harmony/typedarrays-every.js

Issue 1133503003: Factor out core of Array.forEach and .every, for use in TypedArrays (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 7 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 | « src/harmony-typedarray.js ('k') | test/mjsunit/harmony/typedarrays-foreach.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/typedarrays-every.js
diff --git a/test/mjsunit/harmony/typedarrays-every.js b/test/mjsunit/harmony/typedarrays-every.js
index 3f95ba9d4c0e374b11302dbeb38d4f36ae6b03fb..c81fd966ca623ae268b1d3b257fc07014574bf5f 100644
--- a/test/mjsunit/harmony/typedarrays-every.js
+++ b/test/mjsunit/harmony/typedarrays-every.js
@@ -85,8 +85,9 @@ function TestTypedArrayForEach(constructor) {
// still make .forEach() finish, and the array should keep being
// empty after neutering it.
count = 0;
- a = new constructor(2);
+ a = new constructor(3);
result = a.every(function (n, index, array) {
+ assertFalse(array[index] === undefined); // don't get here if neutered
if (count > 0) %ArrayBufferNeuter(array.buffer);
array[index] = n + 1;
count++;
« no previous file with comments | « src/harmony-typedarray.js ('k') | test/mjsunit/harmony/typedarrays-foreach.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698