proposal-defer-import-eval icon indicating copy to clipboard operation
proposal-defer-import-eval copied to clipboard

Questions about import defer * have to add a new DeferredNamespace

Open LMM-7xyx opened this issue 1 year ago • 2 comments

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 avatar Jul 04 '24 01:07 LMM-7xyx

see https://github.com/tc39/proposal-defer-import-eval/pull/43

Jack-Works avatar Jul 04 '24 03:07 Jack-Works

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.

nicolo-ribaudo avatar Jul 04 '24 14:07 nicolo-ribaudo