mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 1686218 - top level await should throw the current module error, not the cycle root error; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D101465
This commit is contained in:
parent
50efd46fb1
commit
b3f97ee239
@ -717,7 +717,7 @@ function InnerModuleEvaluation(module, stack, index)
|
||||
assert(requiredModule.status >= MODULE_STATUS_EVALUATED,
|
||||
`Bad module status in InnerModuleEvaluation: ${requiredModule.status}`);
|
||||
if (requiredModule.evaluationError) {
|
||||
throw GetModuleEvaluationError(module);
|
||||
throw GetModuleEvaluationError(requiredModule);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user