esprima icon indicating copy to clipboard operation
esprima copied to clipboard

range is incorrect

Open ariovistus opened this issue 7 years ago • 0 comments

I have some code here: https://github.com/ariovistus/esprima-bug

test.js uses esprima 4.0.1 to parse tok.js and outputs

define "urijs" 2250,2265

which is the position of the last part of tok.js, define("urijs"), as reported by esprima. but it is wrong, the actual position should be 2272

ariovistus avatar Dec 13 '18 02:12 ariovistus