Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 74956742e2346dc26b56f90a67aa724375bfcf1b..028824c117668df33f4373ba8336ddc43760688a 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -7136,6 +7136,13 @@ TEST(FunctionDeclarationError) { |
"with ({}) label: function f() { };", |
"if (true) label: function f() {}", |
"if (true) {} else label: function f() {}", |
+ "if (true) function* f() { }", |
+ "label: function* f() { }", |
+ // TODO(littledan, v8:4806): Ban duplicate generator declarations in |
+ // a block, maybe by tracking whether a Variable is a generator declaration |
+ // "{ function* f() {} function* f() {} }", |
+ // "{ function f() {} function* f() {} }", |
+ // "{ function* f() {} function f() {} }", |
NULL |
}; |
// Valid only in sloppy mode, with or without |