-
Notifications
You must be signed in to change notification settings - Fork 1
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
hasDynamicImport
with eval dynamic import
#14
Comments
This is a great point, thanks. This may be justification to remove this feature, I'll post a PR. |
In this case, the dynamic import will have no context (for resolving a relative module) IMO. I don't want this feature to be removed. |
In Node.js, I get the following: subfolder/mod.mjs
Attempting to load |
I also tried this and dug into the spec. Yes, it will have the context, even indirect eval works, so it's ok to remove |
Thanks for the follow-up. Since it is so close to the meeting, I will leave the PR open for now. |
It depends on if the eval is a direct eval. If it is an indirect eval, it depends on whether the host propagates the active script properly (actually, it's not tc39/ecma262#3195). |
Removed in #15. |
Could
AbstractModuleSource.prototype.hasDynamicImport
determinisitically betrue
if the module contains dynamic imports via eval?The text was updated successfully, but these errors were encountered: