DescriptionChange locationFromPosition() and locationFromLine() to use a binary search to locate line numbers from position numbers. Modify test debug-sourceinfo.js to include more tests, including error conditions.
Ran the test successfully with the old and new version of messages.js. This implies things work the same, including "error" conditions of supplying bad position numbers (that is, querying "<0" returns 0 while querying ">max" returns null).
Patch Set 1 #
Total comments: 5
Patch Set 2 : '' #Patch Set 3 : '' #
Messages
Total messages: 3 (0 generated)
|