From: epertoso Date: Mon, 20 Jul 2015 15:56:11 +0000 (-0700) Subject: Takes the script offset into account when obtaining the column of the message. X-Git-Tag: upstream/4.7.83~1279 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a5285108b479567294064700453c4809c0d215c;p=platform%2Fupstream%2Fv8.git Takes the script offset into account when obtaining the column of the message. R=jochen@chromium.org,yangguo@chromium.org Review URL: https://codereview.chromium.org/1231663007 Cr-Commit-Position: refs/heads/master@{#29761} --- diff --git a/src/messages.js b/src/messages.js index cd4664e..63cefc8 100644 --- a/src/messages.js +++ b/src/messages.js @@ -542,7 +542,7 @@ utils.SetUpLockedPrototype(SourceSlice, function GetPositionInLine(message) { var script = %MessageGetScript(message); var start_position = %MessageGetStartPosition(message); - var location = script.locationFromPosition(start_position, false); + var location = script.locationFromPosition(start_position, true); if (location == null) return -1; return location.column; }