Index: src/codegen.cc |
=================================================================== |
--- src/codegen.cc (revision 1693) |
+++ src/codegen.cc (working copy) |
@@ -568,7 +568,7 @@ |
void CodeGenerator::CodeForReturnPosition(FunctionLiteral* fun) { |
if (FLAG_debug_info) { |
- int pos = fun->start_position(); |
+ int pos = fun->end_position(); |
if (pos != RelocInfo::kNoPosition) { |
masm()->RecordStatementPosition(pos); |
masm()->RecordPosition(pos); |