robertkrimen / otto

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

fix: reduce current index type #468

Closed stevenh closed 1 year ago

stevenh commented 1 year ago

While not specified in the ECMA specification the current index has been typed as number by others, so match this instead of passing as string.

Fixes #177