Identifying ECMAScript identifiers

Mathias Bynens mathias at
Wed Jun 12 00:33:10 PDT 2013

Also, what about the non-reserved words that act like reserved words, i.e. the immutable `NaN`, `Infinity`, and `undefined` properties of the global object, or `eval` and `arguments` which are disallowed as identifiers (see section 12.2.1) in strict mode? IMHO, these are examples of why it would be useful to add a robust `String.isIdentifier` to the proposal.

More information about the es-discuss mailing list