Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 58b0acd14ce4bc51a0e8d47a143186e3b833ef11..8a50b6edbdae943f13d63fc5c3152794deca0e5a 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -8702,9 +8702,9 @@ TEST(NoPessimisticContextAllocation) { |
// Context allocating because we need to: |
{"", "my_var;", true}, |
{"", "if (true) { let my_var; } my_var;", true}, |
- {"", "eval(\"foo\");", true}, |
+ {"", "eval('foo');", true}, |
{"", "function inner2() { my_var; }", true}, |
- {"", "function inner2() { eval(\"foo\"); }", true}, |
+ {"", "function inner2() { eval('foo'); }", true}, |
{"", "var {my_var : a} = {my_var};", true}, |
{"", "let {my_var : a} = {my_var};", true}, |
{"", "const {my_var : a} = {my_var};", true}, |
@@ -8717,6 +8717,8 @@ TEST(NoPessimisticContextAllocation) { |
{"[a] = [my_var]", "", true}, |
{"", "function inner2([a] = [my_var]) { }", true}, |
{"", "([a] = [my_var]) => { }", true}, |
+ {"", "function inner2(a = eval('')) { }", true}, |
+ {"", "(a = eval('')) => { }", true}, |
{"", "try { } catch (my_var) { } my_var;", true}, |
{"", "for (my_var in {}) { my_var; }", true}, |
{"", "for (my_var in {}) { }", true}, |