| Index: test/mjsunit/regress/regress-crbug-656037.js
|
| diff --git a/test/mjsunit/regress/regress-3650-3.js b/test/mjsunit/regress/regress-crbug-656037.js
|
| similarity index 70%
|
| copy from test/mjsunit/regress/regress-3650-3.js
|
| copy to test/mjsunit/regress/regress-crbug-656037.js
|
| index 013e4df2834e20435982300303eb6260eb41b2be..47d09aaa4b9d466574eea9c5ecbd3c5af54cf911 100644
|
| --- a/test/mjsunit/regress/regress-3650-3.js
|
| +++ b/test/mjsunit/regress/regress-crbug-656037.js
|
| @@ -5,13 +5,11 @@
|
| // Flags: --allow-natives-syntax
|
|
|
| function foo(a) {
|
| - for (var d in a) {
|
| - delete a[1];
|
| - }
|
| + return a.push(true);
|
| }
|
|
|
| -foo([1,2,3]);
|
| -foo([2,3,4]);
|
| +var a = [];
|
| +assertEquals(1, foo(a));
|
| +assertEquals(2, foo(a));
|
| %OptimizeFunctionOnNextCall(foo);
|
| -foo([1,2,3]);
|
| -assertOptimized(foo);
|
| +assertEquals(3, foo(a));
|
|
|