Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 57efc54011356a4fbc2b03beb16b46c176bd1ebd..a92aca9ade80aaa8c9bd159b1731311e09e7d1d2 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -897,7 +897,7 @@ void BytecodeGenerator::VisitBreakStatement(BreakStatement* stmt) { |
void BytecodeGenerator::VisitReturnStatement(ReturnStatement* stmt) { |
VisitForAccumulatorValue(stmt->expression()); |
- builder()->SetReturnPosition(info_->literal()); |
+ builder()->SetStatementPosition(stmt); |
execution_control()->ReturnAccumulator(); |
} |