Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 90d081808f8eb3f4277daac0e09bb1ec9b595101..d7d8c23e35c4716761ac1c90dd4a535cfcd0c463 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -2393,6 +2393,10 @@ TEST(ErrorsYieldGenerator) { |
"var {foo: yield 24} = {a: 42};", |
"[yield 24] = [42];", |
"({a: yield 24} = {a: 42});", |
+ "for (yield 'x' in {});", |
+ "for (yield 'x' of {});", |
+ "for (yield 'x' in {} in {});", |
+ "for (yield 'x' in {} of {});", |
NULL |
}; |
// clang-format on |