| Index: test/mjsunit/regress/regress-crbug-621816.js
|
| diff --git a/test/mjsunit/regress/regress-4970.js b/test/mjsunit/regress/regress-crbug-621816.js
|
| similarity index 58%
|
| copy from test/mjsunit/regress/regress-4970.js
|
| copy to test/mjsunit/regress/regress-crbug-621816.js
|
| index da0033b34f57891945eea6f97ee8c760956dcd36..ca7f5ac6df314f81e4c73f9417d1a6f3240540fc 100644
|
| --- a/test/mjsunit/regress/regress-4970.js
|
| +++ b/test/mjsunit/regress/regress-crbug-621816.js
|
| @@ -1,15 +1,18 @@
|
| // 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.
|
| -//
|
| -// Flags: --allow-natives-syntax
|
|
|
| +// Flags: --allow-natives-syntax --turbo
|
| +
|
| +function f() {
|
| + var o = {};
|
| + o.a = 1;
|
| +}
|
| function g() {
|
| - var f;
|
| - class C extends eval("f = () => delete C; Array") {}
|
| + var o = { ['a']: function(){} };
|
| f();
|
| }
|
| -
|
| -assertThrows(g, SyntaxError);
|
| +f();
|
| +f();
|
| %OptimizeFunctionOnNextCall(g);
|
| -assertThrows(g, SyntaxError);
|
| +g();
|
|
|