New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16.1 and Annex C don't forbid NonOctalDecimalIntegerLiteral #189

Closed
nanto opened this Issue Nov 16, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@nanto

nanto commented Nov 16, 2015

[JP22] B.1.1 adds LegacyOctalIntegerLiteral and NonOctalDecimalIntegerLiteral, and forbid them for strict mode code. On the other hand, 16.1 and Annex C forbids only LegacyOctalIntegerLiteral. Is NonOctalDecimalIntegerLiteral allowed for strict mode code or not?

@mazkasa

This comment has been minimized.

Show comment
Hide comment
@mazkasa

mazkasa Nov 16, 2015

In NOTE of 11.8.3 Numeric Literals, both of extends seems forbidden on strict mode code.

A conforming implementation, when processing strict mode code (see 10.2.1), must not extend, as described in B.1.1, the syntax of NumericLiteral to include LegacyOctalIntegerLiteral, nor extend the syntax of DecimalIntegerLiteral to include NonOctalDecimalIntegerLiteral.

mazkasa commented Nov 16, 2015

In NOTE of 11.8.3 Numeric Literals, both of extends seems forbidden on strict mode code.

A conforming implementation, when processing strict mode code (see 10.2.1), must not extend, as described in B.1.1, the syntax of NumericLiteral to include LegacyOctalIntegerLiteral, nor extend the syntax of DecimalIntegerLiteral to include NonOctalDecimalIntegerLiteral.

@nanto

This comment has been minimized.

Show comment
Hide comment
@nanto

nanto Nov 16, 2015

Thank you! I have missed it. I change the issue title to "16.1 and Annex C don't forbid NonOctalDecimalIntegerLiteral".

nanto commented Nov 16, 2015

Thank you! I have missed it. I change the issue title to "16.1 and Annex C don't forbid NonOctalDecimalIntegerLiteral".

@nanto nanto changed the title from Is NonOctalDecimalIntegerLiteral allowed for strict mode code? to 16.1 and Annex C don't forbid NonOctalDecimalIntegerLiteral Nov 16, 2015

@bterlson bterlson closed this in 518c581 Jan 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment