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 |