Index: test/cctest/interpreter/test-bytecode-generator.cc |
diff --git a/test/cctest/interpreter/test-bytecode-generator.cc b/test/cctest/interpreter/test-bytecode-generator.cc |
index c5e6b3a21714a95f3d52cef0b2a672f872ae32bf..4ff9e5352a95df32fb16a09a151bec0d90da9d0d 100644 |
--- a/test/cctest/interpreter/test-bytecode-generator.cc |
+++ b/test/cctest/interpreter/test-bytecode-generator.cc |
@@ -2142,6 +2142,9 @@ TEST(ClassDeclarations) { |
"var count = 0;\n" |
"class C { constructor() { count++; }}\n" |
"return new C();\n", |
+ |
+ "(class {})\n" |
+ "class E { static name () {}}\n", |
}; |
CHECK(CompareTexts(BuildActual(printer, snippets), |