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

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

Issue 1159433003: Use GetProperty for getting elements. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments 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 | « test/mjsunit/es6/indexed-integer-exotics.js ('k') | test/mjsunit/regress/regress-splice-large-index.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 65cd87de010c06a91952c3a7c41a4e7ab46b914e..ab345a9b61e0a8d78a79180b9a7c978f22babcab 100644
--- a/test/mjsunit/regress/regress-581.js
+++ b/test/mjsunit/regress/regress-581.js
@@ -35,11 +35,13 @@ assertEquals(pow31 + 1, a.length);
assertThrows(function() { a.concat(a); }, RangeError);
var b = [];
-b[pow31 - 2] = 32;
+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]);
-assertEquals(32, ab[2 * pow31 - 1]);
+assertEquals(32, ab[2 * pow31 - 2]);
+assertEquals(undefined, ab[2 * pow31 - 1]);
var c = [];
c[pow30] = 30;
« no previous file with comments | « test/mjsunit/es6/indexed-integer-exotics.js ('k') | test/mjsunit/regress/regress-splice-large-index.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698