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 c32b7e1906f1332166eabc007eadf6c82b923b10..75b2d948fb3e6c9b31a98f4c1d00f17f2064a14a 100644 |
--- a/test/cctest/interpreter/test-bytecode-generator.cc |
+++ b/test/cctest/interpreter/test-bytecode-generator.cc |
@@ -1814,6 +1814,13 @@ TEST(LookupSlot) { |
" eval('var x = 10');\n" |
" return x;\n" |
"}\n" |
+ "f();\n", |
+ |
+ "x = 20;\n" |
+ "f = function(){\n" |
+ " eval('var x = 10');\n" |
+ " return x;\n" |
+ "}\n" |
"f();\n" |
}; |
// clang-format on |