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); |