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
I have a bit of a problem using UglifyJS2 with for...of statements; I'm using the new Web MIDI APIs which currently only work with this type of iterator. The relevant code is this:
/Users/bbriggs/projects/UglifyJS2/lib/parse.js:197
throw new JS_Parse_Error(message, line, col, pos);
^
Error
at new JS_Parse_Error (/Users/bbriggs/projects/UglifyJS2/lib/parse.js:189:18)
at js_error (/Users/bbriggs/projects/UglifyJS2/lib/parse.js:197:11)
at croak (/Users/bbriggs/projects/UglifyJS2/lib/parse.js:657:9)
at token_error (/Users/bbriggs/projects/UglifyJS2/lib/parse.js:665:9)
at expect_token (/Users/bbriggs/projects/UglifyJS2/lib/parse.js:678:9)
at expect (/Users/bbriggs/projects/UglifyJS2/lib/parse.js:681:36)
at regular_for (/Users/bbriggs/projects/UglifyJS2/lib/parse.js:905:9)
at for_ (/Users/bbriggs/projects/UglifyJS2/lib/parse.js:901:16)
at /Users/bbriggs/projects/UglifyJS2/lib/parse.js:783:24
at /Users/bbriggs/projects/UglifyJS2/lib/parse.js:704:24
While the client engines support for-of, uglify-js does not [1].
In the meantime, let's add the transpiler plug-in to make use of
this language feature.
[1] mishoo/UglifyJS#587
Change-Id: Ibfc1ac5b66b23efc94e56c2cb10529964ad39549
Hello,
I have a bit of a problem using UglifyJS2 with
for...of
statements; I'm using the new Web MIDI APIs which currently only work with this type of iterator. The relevant code is this:To recreate the problem, just put that in a file and try to parse:
Yields:
API docs: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for...of
Somewhat related to: browserify/browserify#1008
Thanks. 😃
The text was updated successfully, but these errors were encountered: