| Index: test/mjsunit/bugs/bug-4577.js
|
| diff --git a/test/mjsunit/compiler/regress-ntl-effect.js b/test/mjsunit/bugs/bug-4577.js
|
| similarity index 51%
|
| copy from test/mjsunit/compiler/regress-ntl-effect.js
|
| copy to test/mjsunit/bugs/bug-4577.js
|
| index 708fe32828c9197dfa3d8c371ab01cbc1ad3317a..de2f843965de8f0da6244334e722194a4353008f 100644
|
| --- a/test/mjsunit/compiler/regress-ntl-effect.js
|
| +++ b/test/mjsunit/bugs/bug-4577.js
|
| @@ -2,15 +2,12 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// Flags: --allow-natives-syntax
|
| -
|
| -function g() {
|
| - throw 0;
|
| +function f(...arguments) {
|
| + return Array.isArray(arguments);
|
| }
|
| +assertTrue(f());
|
|
|
| -function f() {
|
| - g();
|
| - while (1) {}
|
| +function g({arguments}) {
|
| + return arguments === 42;
|
| }
|
| -
|
| -assertThrows(function () { f(); });
|
| +assertTrue(g({arguments: 42}));
|
|
|