Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 27a168156529b9fa6b72430f0b47ef22a43f2161..4b1a552391566a3d27fdd65895fd1299e41cfb61 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -633,6 +633,13 @@ void FullCodeGenerator::EmitGeneratorNext(CallRuntime* expr) { |
} |
+void FullCodeGenerator::EmitGeneratorReturn(CallRuntime* expr) { |
+ ZoneList<Expression*>* args = expr->arguments(); |
+ DCHECK(args->length() == 2); |
+ EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::RETURN); |
+} |
+ |
+ |
void FullCodeGenerator::EmitGeneratorThrow(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK(args->length() == 2); |