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

Unified Diff: test/cctest/test-parsing.cc

Issue 2089733002: [parser] only parse async arrow function when necessary (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index 2ec378b25cd855a0f8e08caf2b7481b04e7fc419..3c7822a03209f55c7888e27c05e2cdf1622b8f6c 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -7640,6 +7640,31 @@ TEST(AsyncAwaitErrors) {
"var O = { async method() { function await() {} } }",
"async function foo() { function await() {} }",
+ // Henrique Ferreiro's bug (tm)
+ "(async function foo() { } foo => 1)",
+ "(async function foo() { } () => 1)",
+ "(async function foo() { } => 1)",
+ "(async function() { } foo => 1)",
+ "(async function() { } () => 1)",
+ "(async function() { } => 1)",
+ "(async.foo => 1)",
+ "(async.foo foo => 1)",
+ "(async.foo () => 1)",
+ "(async().foo => 1)",
+ "(async().foo foo => 1)",
+ "(async().foo () => 1)",
+ "(async['foo'] => 1)",
+ "(async['foo'] foo => 1)",
+ "(async['foo'] () => 1)",
+ "(async()['foo'] => 1)",
+ "(async()['foo'] foo => 1)",
+ "(async()['foo'] () => 1)",
+ "(async`foo` => 1)",
+ "(async`foo` foo => 1)",
+ "(async`foo` () => 1)",
+ "(async`foo`.bar => 1)",
+ "(async`foo`.bar foo => 1)",
+ "(async`foo`.bar () => 1)",
NULL
};
« 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