Index: src/interpreter/interpreter-intrinsics-generator.cc |
diff --git a/src/interpreter/interpreter-intrinsics-generator.cc b/src/interpreter/interpreter-intrinsics-generator.cc |
index e8572ba1d4fb39faa2e62acb7dc4a1ec1ab72790..1f2816d2dbbc29908543028a1b89297c7cc59cae 100644 |
--- a/src/interpreter/interpreter-intrinsics-generator.cc |
+++ b/src/interpreter/interpreter-intrinsics-generator.cc |
@@ -437,13 +437,10 @@ Node* IntrinsicsGenerator::GeneratorGetResumeMode(Node* args_reg, |
Node* IntrinsicsGenerator::GeneratorClose(Node* args_reg, Node* arg_count, |
Node* context) { |
Node* generator = __ LoadRegister(args_reg); |
- Node* const value = |
- __ LoadObjectField(generator, JSGeneratorObject::kResumeModeOffset); |
__ StoreObjectFieldNoWriteBarrier( |
generator, JSGeneratorObject::kContinuationOffset, |
__ SmiConstant(JSGeneratorObject::kGeneratorClosed)); |
- |
- return value; |
+ return __ UndefinedConstant(); |
} |
Node* IntrinsicsGenerator::AsyncGeneratorReject(Node* input, Node* arg_count, |