Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: test/mjsunit/regress/regress-crbug-580934.js

Issue 1689243002: Version 4.9.385.19 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.9
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
+}
« no previous file with comments | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698