Chromium Code Reviews| 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 |
|
rmcilroy
2016/09/16 08:56:55
Is this necessary? None of the other functions see
Leszek Swirski
2016/09/16 10:46:54
Good question, I wouldn't have thought so but then
|
| 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"))); |