Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index abdb3f50e43df300f6a0e02977b5d670512b6701..60b811667919d9fe5f7ed411a989525c3c886c12 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -8864,16 +8864,22 @@ TEST(NoPessimisticContextAllocation) { |
false}, |
{"function inner() { for (var {a, my_var} in {}) { } my_var; }", false}, |
{"function inner() { for (var {a, my_var} of []) { } my_var; }", false}, |
- {"function inner() { class my_var {}; my_var }", false}, |
- // In the following cases we still context allocate pessimistically: |
- {"function inner() { function my_var() {} my_var; }", true}, |
- {"function inner() { if (true) { function my_var() {} } my_var; }", |
- true}, |
{"function inner() { for (let my_var = 0; my_var < 1; ++my_var) { my_var " |
"} }", |
- true}, |
+ false}, |
+ {"function inner() { for (var my_var = 0; my_var < 1; ++my_var) { my_var " |
+ "} }", |
+ false}, |
{"function inner() { for (let a = 0, my_var = 0; my_var < 1; ++my_var) { " |
"my_var } }", |
+ false}, |
+ {"function inner() { for (var a = 0, my_var = 0; my_var < 1; ++my_var) { " |
+ "my_var } }", |
+ false}, |
+ {"function inner() { class my_var {}; my_var }", false}, |
+ // In the following cases we still context allocate pessimistically: |
+ {"function inner() { function my_var() {} my_var; }", true}, |
+ {"function inner() { if (true) { function my_var() {} } my_var; }", |
true}, |
}; |