Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 58b0acd14ce4bc51a0e8d47a143186e3b833ef11..935e63b3da46b95a21962b57aeed6046ad2f1a16 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -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}, |
adamk
2017/01/20 17:55:41
You could use eval('') to avoid the quoting and ma
marja
2017/01/24 09:40:28
Done.
|
+ {"", "(a = eval(\"\")) => { }", true}, |
{"", "try { } catch (my_var) { } my_var;", true}, |
{"", "for (my_var in {}) { my_var; }", true}, |
{"", "for (my_var in {}) { }", true}, |