proposal-defer-import-eval
proposal-defer-import-eval copied to clipboard
Questions about import defer * have to add a new DeferredNamespace
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.
see https://github.com/tc39/proposal-defer-import-eval/pull/43
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.