-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle error cases during module script tree fetching/running better
As discussed in #1545 and in https://esdiscuss.org/topic/moduledeclarationinstantiation-behaviour-after-failure, the spec would potentially call ModuleDeclarationInstantiation on a module that previously failed to instantiate, with cascading bad consequences for the rest of the spec's algorithms. The JavaScript spec expects us to track these failures and avoid calling ModuleDeclarationInstantiation a second time. This commit adds such state tracking, partially by moving the ModuleDeclarationInstantiation calls to fetch time (with any errors stored for later rethrowing during evaluation time). Fixes #1545.
- Loading branch information
Showing
1 changed file
with
113 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters