robertkrimen / otto

A JavaScript interpreter in Go (golang)
http://godoc.org/github.com/robertkrimen/otto
MIT License
8.01k stars 584 forks source link

fix: starting position of comment #507

Closed tyamagu2 closed 1 year ago

tyamagu2 commented 1 year ago

Fix Begin of Comment to point to the position of the opening slash.

p.idx is updated after scan with idx, so it does not point to the beginning slash while scanning a comment.