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

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

Issue 2271063002: Centralize and standardize logic for ExpressionClassifier accumulation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 4 years, 4 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/preparser.cc ('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 627d4cb4f0ebe3d4d90acb4ba590db1018cb568f..d50095cdf0cbf8d65ada096cfa489e19be649709 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -7817,8 +7817,6 @@ TEST(AsyncAwaitErrors) {
"var f = async(x = await 1) => x;",
"var O = { async method(x = await 1) { return x; } };",
- "var f = async(x = await) => 1;",
-
"function* g() { var f = async yield => 1; }",
"function* g() { var f = async(yield) => 1; }",
"function* g() { var f = async(x = yield) => 1; }",
@@ -7895,6 +7893,7 @@ TEST(AsyncAwaitErrors) {
"var f = async(await) => 1;",
"var f = async(await = 1) => 1;",
"var f = async(...[await]) => 1;",
+ "var f = async(x = await) => 1;",
// v8:5190
"var f = async(1) => 1",
@@ -7903,6 +7902,12 @@ TEST(AsyncAwaitErrors) {
"var f = async({ foo = async(1) => 1 }) => 1",
"var f = async({ foo = async(a) => 1 })",
+ "var f = async(x = async(await)) => 1;",
+ "var f = async(x = { [await]: 1 }) => 1;",
+ "var f = async(x = class extends (await) { }) => 1;",
+ "var f = async(x = class { static [await]() {} }) => 1;",
+ "var f = async({ x = await }) => 1;",
+
NULL
};
// clang-format on
« no previous file with comments | « src/parsing/preparser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698