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

Unified Diff: test/mjsunit/regress/regress-581.js

Issue 1278703003: Fix off-by-one in Array.concat's max index check (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/runtime/runtime-array.cc ('k') | test/mjsunit/regress/regress-crbug-516592.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-581.js
diff --git a/test/mjsunit/regress/regress-581.js b/test/mjsunit/regress/regress-581.js
index ab345a9b61e0a8d78a79180b9a7c978f22babcab..1b40f580e2c64014592605d1acebca4f78d9d5d7 100644
--- a/test/mjsunit/regress/regress-581.js
+++ b/test/mjsunit/regress/regress-581.js
@@ -36,7 +36,6 @@ assertThrows(function() { a.concat(a); }, RangeError);
var b = [];
b[pow31 - 3] = 32;
-b[pow31 - 2] = "out_of_bounds";
var ab = a.concat(b);
assertEquals(2 * pow31 - 1, ab.length);
assertEquals(31, ab[pow31]);
« no previous file with comments | « src/runtime/runtime-array.cc ('k') | test/mjsunit/regress/regress-crbug-516592.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698