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: number locale support #472

Closed stevenh closed 1 year ago

stevenh commented 1 year ago

Add support for Number.toLocaleString() which was previously just using toString.

Default locale is: en-US

Fixes #285