From 6d54362dbd4a696153010c747320754ded6ae5bf Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Mon, 10 May 2010 06:24:01 +0000 Subject: [PATCH] Fixes bug with v8::StackTrace for non-zero script line offsets Change by jaimeyap see http://codereview.chromium.org/1985004 for details. Review URL: http://codereview.chromium.org/2049004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4623 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/top.cc | 17 ++++++++--------- test/cctest/test-api.cc | 19 ++++++++++++------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/top.cc b/src/top.cc index c071193cd4..87dc1f61ff 100644 --- a/src/top.cc +++ b/src/top.cc @@ -394,21 +394,20 @@ Local Top::CaptureCurrentStackTrace( int script_line_offset = script->line_offset()->value(); int position = frame->code()->SourcePosition(frame->pc()); int line_number = GetScriptLineNumber(Handle