-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
In https://html.spec.whatwg.org/#calling-scripts the spec currently says:
Let instantiationStatus be record.ModuleDeclarationInstantiation().
If instantiationStatus is an abrupt completion, report the exception given by instantiationStatus.[[Value]] for s and abort these steps.
If the ModuleDeclarationInstantiation fails for a record (or for one of its descendants because this happens recursively) then that module script will be left in the module map and can be used to satisfy subsequent requests to fetch a module script. ModuleDeclarationInstantiation will not attempt to re-instantiate a module record if called again for the same record, and incorrect execution will follow.
It seems the expectation is that the entire module tree will be discarded if ModuleDeclarationInstantation fails.