minify AT.js execute error: Cannot read property 'substr' of undefined #7363
Unanswered
espruino-discuss
asked this question in
Other Boards
Replies: 1 comment
-
Posted at 2020-04-01 by @gfwilliams Which IDE version are you using? I made some changes to get a new Esprima, so maybe if you try http://espruino.com/ide then it'll do a better job? Posted at 2020-04-01 by user109783 Web IDE version 0.72.1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-04-01 by user109783
when I use Esprima(offline) to minify the code, It's not okay when use AT.js. But If I don't use Esprima, all goes well.
I think the position of the error right here:
How can I avoid this error?
Otherwise, when I tried to uncheck the Esprima: Mangle(Shorten variable name), the result of this error still use the short variable name, I wonder if WEB IDE didn't work?
=======================================
I tried to write a simple code in WEB-IDE,
and use Esprima to minify the code, like these. It's the same with the original AT.js.
However, when I pick up the same position code from my project by dump(), the AT.js part is different with the previous one.
Beta Was this translation helpful? Give feedback.
All reactions