Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Unified Diff: src/messages.js

Issue 1021303002: [V8] Fix messages GetPositionInLine method (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.js
diff --git a/src/messages.js b/src/messages.js
index 12170c463a54cfca49b984226a5e07964ed57f32..0120ca50e9a8b56a883fdfe6e782564c8b08c085 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -779,7 +779,7 @@ function GetPositionInLine(message) {
var location = script.locationFromPosition(start_position, false);
if (location == null) return -1;
location.restrict();
- return start_position - location.start;
+ return location.column;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698