You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x for x in y
x for x in y
x for x in y
x for x in y
x for x in y
x for x in y
x for x in y
x for x in y
x for x in y
x for x in y
x for x in y
x for x in y
x for x in y
x for x in y
x for x in y
It looks like the names of auto-generated JS variables (eg. __a) are not currently restricted to alphanumeric characters, or checked for legality. When more than 26 such variables are emitted in a single scope, after __z has already been used, the compiler seems to continue up the ascii chart, using variable names like __{, __|, and __}, which are not syntactically valid.
A better option would switching to longer names after __z, and emitting __aa, __ab, ... __zy, _zz.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this -- I was just using Prototype.js' succ() without thinking about it. On the latest master, bin/node_coffee will now generate shorter numeric ids instead of bothering with alphabetic ones:
_1, _2, _3 ...
Closing the ticket.
protez
pushed a commit
to protez/coffee-script
that referenced
this issue
Jul 28, 2015
Input:
Output:
It looks like the names of auto-generated JS variables (eg.
__a
) are not currently restricted to alphanumeric characters, or checked for legality. When more than 26 such variables are emitted in a single scope, after__z
has already been used, the compiler seems to continue up the ascii chart, using variable names like__{
,__|
, and__}
, which are not syntactically valid.A better option would switching to longer names after
__z
, and emitting__aa
,__ab
, ...__zy
,_zz
.The text was updated successfully, but these errors were encountered: