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

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

Issue 1949223002: Disallow yield in computed property names of class expressions in params (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added a few more tests Created 4 years, 7 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 5095710a67b84df2b27a79737537965b664206c2..718b5f4ada6b9c264add2c30f08cbf9dcec1d240 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -6781,6 +6781,10 @@ TEST(DefaultParametersYieldInInitializers) {
"[x] = [class extends (a ? null : yield) { }]",
"[x = class extends (a ? null : yield) { }]",
"[x = class extends (a ? null : yield) { }] = [null]",
+ "x = class { [yield]() { } }",
+ "x = class { static [yield]() { } }",
+ "x = class { [(yield, 1)]() { } }",
+ "x = class { [y = (yield, 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