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
It seems that the current version of js-tokens does not yet support private identifiers (#foo). I can update js-tokens if the upstream got a support for that. Note that Roadroller bundles its own version of js-tokens to aid the minification, so the update requires a manual process.
Meanwhile you can disable JS preprocessing by -t text -a eval, which should work for any input at the expense of compression ratio.
lifthrasiir
changed the title
"Error: invalid JS code in the input"
js-tokens doesn't support private identifiers (#foo)
Sep 17, 2021
thank you very much. I'll probably experiment with a couple of different workarounds including the ones you suggest as well I will try replacing the private member syntax with some other syntax. thank you very much!
o0101
added a commit
to o0101/good.html
that referenced
this issue
Sep 17, 2021
Hello @lifthrasiir
I ran
on this file: https://github.com/i5ik/BANG/blob/799c5ed70bf0585b11024a1597f21fe5691ead74/src/bang.js
And received this output:
The file
src/bang.js
runs correctly in the browser (as you can see)Above, I ran roadroller on Node v14.17.6
Below, I used nvm to try node v16.9.1 and re-installed roadroller@latest and ran with
-v
and got the same error as well asI tried with more memory
--M
and hadJust leaving this report here for information.
Thank you again for this library!
The text was updated successfully, but these errors were encountered: