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

Unified Diff: test/mjsunit/regress/regress-3501.js

Issue 880253004: Do not create unresolved variables when parsing arrow functions lazily (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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
« src/parser.cc ('K') | « src/parser.cc ('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-3501.js
diff --git a/test/mjsunit/compiler/regress-445732.js b/test/mjsunit/regress/regress-3501.js
similarity index 51%
copy from test/mjsunit/compiler/regress-445732.js
copy to test/mjsunit/regress/regress-3501.js
index 199a29a5f859dbe2e5d63c3cc6cfa06a76b0be99..4b449e458f545b5758a8a3ca579be1913becc29a 100644
--- a/test/mjsunit/compiler/regress-445732.js
+++ b/test/mjsunit/regress/regress-3501.js
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax --turbo-asm
+// Flags: --harmony-arrow-functions
-"use asm";
+// See: http://code.google.com/p/v8/issues/detail?id=3501
-%NeverOptimizeFunction(f);
-function f() { }
-f();
+"use strict";
+let lift = f => (x, k) => k (f (x));
+lift(isNaN);
« src/parser.cc ('K') | « src/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698