| Index: test/mjsunit/regress/regress-451322.js
|
| diff --git a/test/mjsunit/compiler/regress-ntl-effect.js b/test/mjsunit/regress/regress-451322.js
|
| similarity index 60%
|
| copy from test/mjsunit/compiler/regress-ntl-effect.js
|
| copy to test/mjsunit/regress/regress-451322.js
|
| index 708fe32828c9197dfa3d8c371ab01cbc1ad3317a..b7794f52f06081f1d047638ef42364a619a6c863 100644
|
| --- a/test/mjsunit/compiler/regress-ntl-effect.js
|
| +++ b/test/mjsunit/regress/regress-451322.js
|
| @@ -4,13 +4,14 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -function g() {
|
| - throw 0;
|
| -}
|
| +var foo = 0;
|
|
|
| -function f() {
|
| - g();
|
| - while (1) {}
|
| +function bar() {
|
| + var baz = 0 - {};
|
| + if (foo > 24) return baz * 0;
|
| }
|
|
|
| -assertThrows(function () { f(); });
|
| +bar();
|
| +bar();
|
| +%OptimizeFunctionOnNextCall(bar);
|
| +bar();
|
|
|