Den Tuzhik
2014-10-14 21:50:45 UTC
?
While current spec describes new binary, octal and hex literals, it doesn't
says anything about edge cases errors (at least I couldn't find anything).
Consider:
```
0xFE
0b012
0o758
```
I would expect these to be type errors, but none of current errors
descriptions include NumericLiterals (which is 11.8.3 in spec):
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-native-error-types-used-in-this-standard-rangeerror
(and
below).
I may have overlooked it of course, would be great if someone could point
me to the place, where it's described.
Denis.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141015/a975dd9d/attachment.html>
While current spec describes new binary, octal and hex literals, it doesn't
says anything about edge cases errors (at least I couldn't find anything).
Consider:
```
0xFE
0b012
0o758
```
I would expect these to be type errors, but none of current errors
descriptions include NumericLiterals (which is 11.8.3 in spec):
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-native-error-types-used-in-this-standard-rangeerror
(and
below).
I may have overlooked it of course, would be great if someone could point
me to the place, where it's described.
Denis.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141015/a975dd9d/attachment.html>