Index: test/mjsunit/regress/regress-crbug-580934.js |
diff --git a/test/mjsunit/regress/regress-572589.js b/test/mjsunit/regress/regress-crbug-580934.js |
similarity index 51% |
copy from test/mjsunit/regress/regress-572589.js |
copy to test/mjsunit/regress/regress-crbug-580934.js |
index 36092a2bf4ea72e0a91502c68276dcf06942696b..02cbfca79649874628439f342de26b3cf9ccb59b 100644 |
--- a/test/mjsunit/regress/regress-572589.js |
+++ b/test/mjsunit/regress/regress-crbug-580934.js |
@@ -2,11 +2,17 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
// |
-// Flags: --allow-natives-syntax --no-lazy |
-// Flags: --harmony-destructuring-bind |
+// Flags: --min-preparse-length=0 |
"use strict"; |
-eval(); |
-var f = ({x}) => { }; |
-%OptimizeFunctionOnNextCall(f); |
-assertThrows(f); |
+{ |
+ let one = () => { |
+ return "example.com"; |
+ }; |
+ |
+ let two = () => { |
+ return one(); |
+ }; |
+ |
+ assertEquals("example.com", two()); |
+} |