Takes the script offset into account when obtaining the column of the message.
authorepertoso <epertoso@chromium.org>
Mon, 20 Jul 2015 15:56:11 +0000 (08:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 20 Jul 2015 15:56:27 +0000 (15:56 +0000)
R=jochen@chromium.org,yangguo@chromium.org

Review URL: https://codereview.chromium.org/1231663007

Cr-Commit-Position: refs/heads/master@{#29761}

src/messages.js

index cd4664e..63cefc8 100644 (file)
@@ -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;
 }