| browser.js |
|
0 |
- |
| lexical-001.js |
Date: 26 November 2000
SUMMARY: Testing numeric literals that begin with 0.
This test arose from Bugzilla bug 49233.
The best explanation is from jsscan.c:
"We permit 08 and 09 as decimal numbers, which makes
our behaviour a superset of the ECMA numeric grammar.
We might not always be so permissive, so we warn about it."
Thus an expression 010 will evaluate, as always, as an octal (to 8).
However, 018 will evaluate as a decimal, to 18. Even though the
user began the expression as an octal, he later used a non-octal
digit. We forgive this and assume he intended a decimal. If the
JavaScript "strict" option is set though, we will give a warning.
|
3095 |
- |
| regress-177314.js |
Date: 30 Oct 2002
SUMMARY: '\400' should lex as a 2-digit octal escape + '0'
See http://bugzilla.mozilla.org/show_bug.cgi?id=177314
Bug was that Rhino interpreted '\400' as a 3-digit octal escape. As such
it is invalid, since octal escapes may only run from '\0' to '\377'. But
the lexer should interpret this as '\40' + '0' instead, and throw no error.
|
1846 |
- |
| regress-469940.js |
|
901 |
- |
| shell.js |
|
0 |
- |