-
Notifications
You must be signed in to change notification settings - Fork 131
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
traverse crashes on ES dynamic import #97
Comments
Try using |
what is that? I don't see |
Got it, I was not familiar with that. Seems like a simpler workaround,
though still a workaround.
…On Wed, Nov 14, 2018, 3:33 AM Jijun Li ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/5109541/48480062-27537080-e844-11e8-8932-ef6895545ba5.png>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBndyHoxl1bmIZXtmRH71OlfHSJXHYGks5uu_-OgaJpZM4X3L8d>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the es8 (7? 9? not sure exactly which number it is, but it's stage 4 now I believe) style
import("foo")
crashes estraverse. In particular:estraverse.traverse(ast, {enter: function(){}, leave: function(){}});
should probably then be enough to repro if there's a dynamic import in the treeI expect estraverse to be able to handle the
type: "Import"
nodes, and it instead throws. This seems to happen when it tries to visit the children of these nodes, as athis.skip()
in the enter function when an import node is encountered does the trick. That said, skipping it's children shouldn't be necessary.The text was updated successfully, but these errors were encountered: