Reviewers: jochen, Yang,
Description:
Takes the script offset into account when obtaining the column of the
message.
[email protected],[email protected]
Please review this at https://codereview.chromium.org/1231663007/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+1, -1 lines):
M src/messages.js
Index: src/messages.js
diff --git a/src/messages.js b/src/messages.js
index
cd4664ee2639ba5e4e4cf2ea9ddd7fe74af796e7..63cefc877d695ef2d33a98621efd3c5fc6c92506
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;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.