Skip to content
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

Questions about import defer * have to add a new DeferredNamespace #45

Open
LMM-7xyx opened this issue Jul 4, 2024 · 2 comments
Open

Comments

@LMM-7xyx
Copy link

LMM-7xyx commented Jul 4, 2024

I don't queit understand “Why import defer * gives a different namespace object from import *” section,is there any problem in the example?It seems that the import file "module-that-throws" doesn't match any file in the example, makes me confuse why defer import doesn't throw error.

@LMM-7xyx LMM-7xyx changed the title Questions Questions about import defer * have to add a new DeferredNamespace Jul 4, 2024
@Jack-Works
Copy link
Member

see #43

@nicolo-ribaudo
Copy link
Member

module-that-throws would be a file with these contents:

throw new Error();

It doesn't throw when you do import defer because it doesn't evaluate the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants