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 |