Index: test/unittests/interpreter/bytecode-array-builder-unittest.cc |
diff --git a/test/unittests/interpreter/bytecode-array-builder-unittest.cc b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
index a3463264ddeef54158e464c29cc320033be58460..d69f5ac5aea422306e07da1eed3d895d1051c646 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -93,8 +93,15 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
.StoreNamedProperty(reg, 0, 2056, LanguageMode::STRICT) |
.StoreKeyedProperty(reg, reg, 2056, LanguageMode::STRICT); |
- // Emit closure operations. |
+ // Emit load / store lookup slots. |
Factory* factory = isolate()->factory(); |
+ Handle<String> name = factory->NewStringFromStaticChars("var_name"); |
+ builder.LoadLookupSlot(name, TypeofMode::NOT_INSIDE_TYPEOF) |
+ .LoadLookupSlot(name, TypeofMode::INSIDE_TYPEOF) |
+ .StoreLookupSlot(name, LanguageMode::SLOPPY) |
+ .StoreLookupSlot(name, LanguageMode::STRICT); |
+ |
+ // Emit closure operations. |
Handle<SharedFunctionInfo> shared_info = factory->NewSharedFunctionInfo( |
factory->NewStringFromStaticChars("function_a"), MaybeHandle<Code>(), |
false); |