Only allow identifier start characters at the beginning of identifiers.
authorDavid Glasser <glasser@davidglasser.net>
Fri, 4 Oct 2013 00:02:19 +0000 (17:02 -0700)
committerDavid Glasser <glasser@davidglasser.net>
Fri, 4 Oct 2013 00:02:19 +0000 (17:02 -0700)
commitbb0a762d12d2ecd058b9d7b57f16b4c289378d9c
tree588c27de99a52671f0e1cac35355eddd302c8275
parent8cc86fee6016bc2d540a348f5eb4a174f006a02b
Only allow identifier start characters at the beginning of identifiers.

Without this fix, the following source:

   x = {"\u200c": 42};

would incorrectly be converted into a quoteless key. But while \u200c is allowed
to be in identifiers, it cannot be at the beginning, as per ES5.

(For example, the SockJS client library doesn't work under uglify starting with
d9ad3c7c.)
lib/parse.js