| Index: test/mjsunit/regress/regress-crbug-662410.js
|
| diff --git a/test/mjsunit/compiler/regress-621423.js b/test/mjsunit/regress/regress-crbug-662410.js
|
| similarity index 68%
|
| copy from test/mjsunit/compiler/regress-621423.js
|
| copy to test/mjsunit/regress/regress-crbug-662410.js
|
| index 962176ffbff75281ae55fed8a05fb40158f0d6f1..f1cbc6b82453e8a2a308cf5a419758f92d760523 100644
|
| --- a/test/mjsunit/compiler/regress-621423.js
|
| +++ b/test/mjsunit/regress/regress-crbug-662410.js
|
| @@ -4,18 +4,18 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -var a = [0, ""];
|
| -a[0] = 0;
|
| +function g(v) { return v.constructor; }
|
|
|
| -function g(array) {
|
| - array[1] = undefined;
|
| -}
|
| +g({});
|
| +g({});
|
|
|
| function f() {
|
| - g(function() {});
|
| - g(a);
|
| + var i = 0;
|
| + do {
|
| + i = i + 1;
|
| + g(i);
|
| + } while (i < 1);
|
| }
|
|
|
| -f();
|
| %OptimizeFunctionOnNextCall(f);
|
| f();
|
|
|