| Index: test/mjsunit/modules-turbo.js
|
| diff --git a/test/mjsunit/regress/regress-crbug-630923.js b/test/mjsunit/modules-turbo.js
|
| similarity index 72%
|
| copy from test/mjsunit/regress/regress-crbug-630923.js
|
| copy to test/mjsunit/modules-turbo.js
|
| index ff0d2dd05efbedec15a515545eac2184c36c59f3..7c31682a5be4702202b62b4f06b8724b3161e00c 100644
|
| --- a/test/mjsunit/regress/regress-crbug-630923.js
|
| +++ b/test/mjsunit/modules-turbo.js
|
| @@ -2,15 +2,13 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +// MODULE
|
| // Flags: --allow-natives-syntax
|
|
|
| -var o = {};
|
| -function bar(o) {
|
| - return 1 + (o.t ? 1 : 2);
|
| -}
|
| -function foo() {
|
| - bar(o);
|
| -}
|
| +export let x = 0;
|
| +function foo() { x++ };
|
| foo();
|
| %OptimizeFunctionOnNextCall(foo);
|
| foo();
|
| +assertOptimized(foo);
|
| +assertEquals(2, x);
|
|
|