Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 31f51bef93838df80764a60179b1d6a9bb6f7db7..b6c90ba319cd51cd2a3136b728cdd45c504b494a 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -621,6 +621,8 @@ class CaptureStackTraceHelper { |
Code* code = frame->LookupCode(); |
int offset = static_cast<int>(frame->pc() - code->instruction_start()); |
int position = code->SourcePosition(offset); |
+ // Make position 1-based. |
+ if (position >= 0) ++position; |
JSObject::AddProperty(stack_frame, column_key_, |
isolate_->factory()->NewNumberFromInt(position), |
NONE); |