mishoo/UglifyJS — Issue #271: `thro\u0077 = 1` gets parsed as `throw = 1`
Author: thejh
Created: 2011-12-13 18:19:02+00:00
State: open

[jann@Jann-PC UglifyJS master]$ cat test.js
thro\u0077 = 1
[jann@Jann-PC UglifyJS master]$ node test.js
[jann@Jann-PC UglifyJS master]$ uglifyjs test.js
DEBUG: Error
at new JS_Parse_Error (/home/jann/gitty/UglifyJS/lib/parse-js.js:260:22)
at js_error (/home/jann/gitty/UglifyJS/lib/parse-js.js:268:15)
at croak (/home/jann/gitty/UglifyJS/lib/parse-js.js:717:17)
at token_error (/home/jann/gitty/UglifyJS/lib/parse-js.js:724:17)
at unexpected (/home/jann/gitty/UglifyJS/lib/parse-js.js:730:17)
at /home/jann/gitty/UglifyJS/lib/parse-js.js:1100:17
at maybe_unary (/home/jann/gitty/UglifyJS/lib/parse-js.js:1185:27)
at expr_ops (/home/jann/gitty/UglifyJS/lib/parse-js.js:1212:32)
at maybe_conditional (/home/jann/gitty/UglifyJS/lib/parse-js.js:1216:28)
at maybe_assign (/home/jann/gitty/UglifyJS/lib/parse-js.js:1240:28)
DEBUG: { message: 'Unexpected token: operator (=)',
line: 1,
col: 12,
pos: 12,

Looks like it's caused by `read_name` destroying this information.