ModuleDeclarationInstantiation behaviour after failure
jcoppeard at mozilla.com
Tue Jul 12 14:29:54 UTC 2016
On 07/07/2016 22:33, Allen Wirfs-Brock wrote:
> The spec. Only generates errors and does try to define error recovery.
> That's up to the implementation.
OK, that makes sense. This situation would clearly be a bug in the
module loader. Maybe it would be worth making ES robust against such
> But I would expect implementations to
> discard any module records it created during a linking phase that throws
This wasn't obvious to me from reading the spec, although there is an
assertion in ModuleEvaluation that ModuleDeclarationInstantation has
completed successfully first that would be invalidated in this case.
More information about the es-discuss