1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-26 20:28:49 +08:00

Add Number.toPrecision

This commit is contained in:
Robert Krimen
2013-03-07 08:42:48 -08:00
parent e5f0da1420
commit 7b0eac16f9
5 changed files with 43 additions and 17 deletions

View File

@@ -85,13 +85,12 @@ For more information: http://github.com/robertkrimen/otto/tree/master/underscore
### Caveat Emptor
* For now, otto is a hybrid ECMA3/ECMA5 interpreter. Parts of the specification are still works in progress.
* For example, "use strict" will parse, but does nothing.
* Error reporting needs to be improved.
* Number.prototype.{toPrecision} are missing.
* Does not support the (?!) or (?=) regular expression syntax (because Go does not)
* JavaScript considers a vertical tab (\000B <VT>) to be part of the whitespace class (\s), while RE2 does not.
* Really, error reporting could use some improvement.
* For now, otto is a hybrid ECMA3/ECMA5 interpreter. Parts of the specification are still works in progress.
* For example, "use strict" will parse, but does nothing.
* Error reporting needs to be improved.
* Does not support the (?!) or (?=) regular expression syntax (because Go does not)
* JavaScript considers a vertical tab (\000B <VT>) to be part of the whitespace class (\s), while RE2 does not.
* Really, error reporting could use some improvement.
### Regular Expression Syntax