`0b012` looks like a syntax error to me (it doesn’t match the binary literal grammar), same with `0o758`.
I’m not sure what the problem with `0xFE` is supposed to be, though? But I would expect these to be caught during the first run of parsing, because they simply violate the grammar of the language (with the exception of the hex example). On Oct 14, 2014, at 5:50 PM, Den Tuzhik <[email protected]> wrote: > 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. > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

