| Index: test/mjsunit/regress/regress-crbug-628573.js
|
| diff --git a/test/mjsunit/compiler/regress-621423.js b/test/mjsunit/regress/regress-crbug-628573.js
|
| similarity index 53%
|
| copy from test/mjsunit/compiler/regress-621423.js
|
| copy to test/mjsunit/regress/regress-crbug-628573.js
|
| index 962176ffbff75281ae55fed8a05fb40158f0d6f1..5ba184d9abaac0afb2da1ca8b7c4ca2a8c326d52 100644
|
| --- a/test/mjsunit/compiler/regress-621423.js
|
| +++ b/test/mjsunit/regress/regress-crbug-628573.js
|
| @@ -4,18 +4,14 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -var a = [0, ""];
|
| -a[0] = 0;
|
| +var z = {valueOf: function() { return 3; }};
|
|
|
| -function g(array) {
|
| - array[1] = undefined;
|
| -}
|
| -
|
| -function f() {
|
| - g(function() {});
|
| - g(a);
|
| -}
|
| -
|
| -f();
|
| -%OptimizeFunctionOnNextCall(f);
|
| -f();
|
| +(function() {
|
| + try {
|
| + var tmp = { x: 12 };
|
| + with (tmp) {
|
| + z++;
|
| + }
|
| + throw new Error("boom");
|
| + } catch(e) {}
|
| +})();
|
|
|