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 9fce98fbd0d4f62da99dbeddddd1d43a342a2fef..c32b7e1906f1332166eabc007eadf6c82b923b10 100644 |
--- a/test/cctest/interpreter/test-bytecode-generator.cc |
+++ b/test/cctest/interpreter/test-bytecode-generator.cc |
@@ -1799,14 +1799,24 @@ TEST(Eval) { |
TEST(LookupSlot) { |
InitializedIgnitionHandleScope scope; |
BytecodeExpectationsPrinter printer(CcTest::isolate()); |
+ printer.set_test_function_name("f"); |
+ // clang-format off |
const char* snippets[] = { |
"eval('var x = 10;'); return x;\n", |
"eval('var x = 10;'); return typeof x;\n", |
"x = 20; return eval('');\n", |
+ |
+ "var x = 20;\n" |
+ "f = function(){\n" |
+ " eval('var x = 10');\n" |
+ " return x;\n" |
+ "}\n" |
+ "f();\n" |
}; |
+ // clang-format on |
CHECK(CompareTexts(BuildActual(printer, snippets), |
LoadGolden("LookupSlot.golden"))); |