According to the spec, a ThrowCompletion should be performed if the module script is null or has a parse error. See https://html.spec.whatwg.org/#hostloadimportedmodule:fetch-a-single-imported-module-script Step 14. So this patch reverts ModuleLoadRequest::IsErrored() update in https://phabricator.services.mozilla.com/D264807 Additionally, a spec issue has been filed to clarify whether an error to rethrow should also be treated as a ThrowCompletion: https://github.com/whatwg/html/issues/11755 Differential Revision: https://phabricator.services.mozilla.com/D267603
2 lines
13 B
JavaScript
2 lines
13 B
JavaScript
const foo;=1
|