Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index 84b73a4ecb8620b0ceaaf69b1db70bc35b5dfcb6..444698c536c330dd492f2cdb38adf9990edd3b55 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -433,7 +433,7 @@ void CodeGenerator::CodeForFunctionPosition(FunctionLiteral* fun) { |
void CodeGenerator::CodeForReturnPosition(FunctionLiteral* fun) { |
- if (FLAG_debug_info) RecordPositions(masm(), fun->end_position(), false); |
+ if (FLAG_debug_info) RecordPositions(masm(), fun->end_position() - 1, false); |
} |