Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 37b40e37ae3bb204d045b4531ff948c901cee7ad..0d53abd44c834f39a13576f924bd743d3965e99f 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -3525,7 +3525,10 @@ TEST(MaybeAssignedTopLevel) { |
const char* prefixes[] = { |
"let foo; ", "let foo = 0; ", |
"let [foo] = [1]; ", "let {foo} = {foo: 2}; ", |
- "let {foo=3} = {}; ", |
+ "let {foo=3} = {}; ", "function foo() {}; ", |
+ "var foo; ", "var foo = 0; ", |
+ "var [foo] = [1]; ", "var {foo} = {foo: 2}; ", |
+ "var {foo=3} = {}; ", "function* foo() {}; ", |
}; |
const char* sources[] = { |
"function bar() {foo = 42}; ext(bar); ext(foo)", |