| Index: test/mjsunit/modules-preparse.js
|
| diff --git a/test/mjsunit/regress/regress-crbug-648740.js b/test/mjsunit/modules-preparse.js
|
| similarity index 65%
|
| copy from test/mjsunit/regress/regress-crbug-648740.js
|
| copy to test/mjsunit/modules-preparse.js
|
| index e52d899852433bbe95bcc3c1de54a56b5c738d7f..6006ab23063fc57f68f67183d489ce7fd344de91 100644
|
| --- a/test/mjsunit/regress/regress-crbug-648740.js
|
| +++ b/test/mjsunit/modules-preparse.js
|
| @@ -1,11 +1,12 @@
|
| // Copyright 2016 the V8 project authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
| -
|
| +//
|
| +// MODULE
|
| // Flags: --min-preparse-length=0
|
|
|
| -(function () {
|
| - function foo() {
|
| - const arguments = 42;
|
| - }
|
| -})()
|
| +let foo = 42;
|
| +function testFoo(x) { assertEquals(x, foo); }
|
| +testFoo(42);
|
| +foo++;
|
| +testFoo(43);
|
|
|