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.
I am using acorn 3.1.0, but this is still in master.
The following code reports an error when used with infer.js (from Tern) because there is no local for the corresponding import statement specifier.
Doing this we make sure that the specifier has a local (recovered in this case). acorn will properly reports a syntax error on the 'from' and infer.js won't fail anymore.
Sounds good to me. But really, it's better to just send a PR instead of an issue when you already identified what needs to be changed. Would you want to do that?
I am using acorn 3.1.0, but this is still in master.
The following code reports an error when used with infer.js (from Tern) because there is no local for the corresponding import statement specifier.
I propose to replace line 378:
with:
Doing this we make sure that the specifier has a local (recovered in this case). acorn will properly reports a syntax error on the 'from' and infer.js won't fail anymore.
infer.js has the following code:
So without a local being set to a recovered node, addVar fails with: TypeError: Cannot read property 'name' of undefined.
The text was updated successfully, but these errors were encountered: