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 9ce46c4a7534005bc159b731638073b43d36a887..8b677370959e720fb852d128ce769735e4e52508 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -332,7 +332,15 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
.CreateArrayLiteral(factory->NewFixedArray(2), 0, 0) |
.CreateObjectLiteral(factory->NewFixedArray(2), 0, 0, reg); |
- // Emit generator operations |
+ // Emit load and store operations for module variables. |
+ builder.LoadModuleVariable(-1, 42) |
+ .LoadModuleVariable(0, 42) |
+ .LoadModuleVariable(1, 42) |
+ .StoreModuleVariable(-1, 42) |
+ .StoreModuleVariable(0, 42) |
+ .StoreModuleVariable(1, 42); |
+ |
+ // Emit generator operations. |
builder.SuspendGenerator(reg) |
.ResumeGenerator(reg); |