ZeParser
ZeParser copied to clipboard
Literals aren't valid label names
ZeParser parses true: var a = 3; without emitting any errors, even though this input raises a SyntaxError in all major implementations. The spec appears to confirm that this is invalid—the grammar for LabelledStatement (Identifier) excludes ReservedWord, which comprises Keyword, NullLiteral, and BooleanLiteral.