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

Unified Diff: test/mjsunit/regress/regress-crbug-412203.js

Issue 563733002: Fix regress-crbug-412203.js (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: better approach Created 6 years, 3 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-412203.js
diff --git a/test/mjsunit/regress/regress-crbug-412203.js b/test/mjsunit/regress/regress-crbug-412203.js
index 6a781308f75b2932ffb606f754f65911228728b9..f15085954f438963c555a21b6efefab546345a3c 100644
--- a/test/mjsunit/regress/regress-crbug-412203.js
+++ b/test/mjsunit/regress/regress-crbug-412203.js
@@ -25,7 +25,12 @@ function foo(x, y) {
a.__proto__ = arguments;
var c = [].concat(a);
- assertEquals(2, c[0]);
- assertEquals(undefined, c[1]);
+ for (var i = 0; i < arguments.length; i++) {
+ assertEquals(i + 2, c[i]);
+ }
+ assertEquals(undefined, c[arguments.length]);
+ assertEquals(undefined, c[arguments.length + 1]);
}
foo(2);
+foo(2, 3);
+foo(2, 3, 4);
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698