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 3d0fe6f2a69fbc5bb65af60adafdeea0d3727236..401ea1411ba52ccde08cd33ca18ea16db4df4b2d 100644 |
--- a/test/cctest/interpreter/test-bytecode-generator.cc |
+++ b/test/cctest/interpreter/test-bytecode-generator.cc |
@@ -2232,11 +2232,14 @@ TEST(Generators) { |
printer.set_test_function_name("f"); |
const char* snippets[] = { |
- "function* f() { }\n", |
+ "function* f() { }\n" |
+ "f();\n", |
- "function* f() { yield 42 }\n", |
+ "function* f() { yield 42 }\n" |
+ "f();\n", |
- "function* f() { for (let x of [42]) yield x }\n", |
+ "function* f() { for (let x of [42]) yield x }\n" |
+ "f();\n", |
}; |
CHECK(CompareTexts(BuildActual(printer, snippets), |