Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 650234a58447d506cd28659f0a9c4c49bd38a332..866351e9d967f33fd257ac62c7a67aafcbdf4010 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -218,6 +218,7 @@ class BytecodeGenerator::ControlScopeForTopLevel final |
case CMD_CONTINUE: |
UNREACHABLE(); |
case CMD_RETURN: |
+ generator()->builder()->SetReturnPosition(); |
generator()->builder()->Return(); |
return true; |
case CMD_RETHROW: |