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 a9307fbed07de575e73b38d6936f0fa6bc5c729d..c2c9e85c1574700ee6c8fac31e2cdb53d890a87b 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -358,7 +358,9 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
.StoreModuleVariable(1, 42); |
// Emit generator operations. |
- builder.SuspendGenerator(reg, SuspendFlags::kYield).ResumeGenerator(reg); |
+ builder.SuspendGenerator(reg, reg_list, SuspendFlags::kYield) |
+ .RestoreGeneratorState(reg) |
+ .RestoreGeneratorRegisters(reg, reg_list); |
// Intrinsics handled by the interpreter. |
builder.CallRuntime(Runtime::kInlineIsArray, reg_list); |