-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Critical assertion error generating source maps #831
Comments
Replacing an identifier with a member expression is not always safe. You’ll be replacing the keys in your object with e.g. |
@eventualbuddha thank you for your feedback. The |
Ah, you're right. I don't know what's causing the issue you're seeing, but it does appear to be a bug. Thanks for clarifying. |
@benjamn do you accept PRs? I might be interested in solving this issue with a patch |
Yep, though it may not happen quickly. |
@eventualbuddha I have tried to keep the patch simple #989 but your help on it is highly appreciated. |
I am not able to reproduce this issue with the newest recast version. I am going to close this issue and my PR. |
I am working since days on a Riot.js compiler bug, this issue is driving me mad. I have noticed that the problem is coming from the recast.print method when it tries to generate the sourcemaps.
I was able to reproduce the issue with a few lines of code here
That's the code to reproduce it in case you want to try to copy and paste it directly in your editor:
Any hint or help solving this issue is really appreciated as long as the sourcemap output will be correct :)
Thank you
The text was updated successfully, but these errors were encountered: