| Index: test/mjsunit/regress/regress-crbug-644245.js
|
| diff --git a/test/mjsunit/regress/regress-crbug-577112.js b/test/mjsunit/regress/regress-crbug-644245.js
|
| similarity index 64%
|
| copy from test/mjsunit/regress/regress-crbug-577112.js
|
| copy to test/mjsunit/regress/regress-crbug-644245.js
|
| index 504f921a335801a51fd1c0c1a39a8b08e8872722..7f4e00599e7eabfd8923c81debd3633bcfb095fb 100644
|
| --- a/test/mjsunit/regress/regress-crbug-577112.js
|
| +++ b/test/mjsunit/regress/regress-crbug-644245.js
|
| @@ -2,13 +2,16 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// Flags: --allow-natives-syntax
|
| +// Flags: --allow-natives-syntax --turbo --turbo-escape
|
|
|
| -Array.prototype.__proto__ = null;
|
| -var prototype = Array.prototype;
|
| function f() {
|
| - prototype.lastIndexOf({});
|
| + try {
|
| + throw "boom";
|
| + } catch(e) {
|
| + %_DeoptimizeNow();
|
| + }
|
| }
|
| +
|
| f();
|
| f();
|
| %OptimizeFunctionOnNextCall(f);
|
|
|