ModuleDeclarationInstantiation behaviour after failure
Jon Coppeard
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
bugs though.
> But I would expect implementations to
> discard any module records it created during a linking phase that throws
> errors.
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.
Thanks,
Jon
More information about the es-discuss
mailing list