Bug 1432901 - Part 3: Add option for synchronous module evaluation in the module loader r=yulia

This adds the parameter to the module loaders evaluation method. I also
rewrote the comments a bit to make this section clearer based on my
understanding of how this works.

Differential Revision: https://phabricator.services.mozilla.com/D145556
This commit is contained in:
Jon Coppeard
2022-05-10 12:58:06 +00:00
parent c3eb9d2d92
commit a6ac533cb7
2 changed files with 22 additions and 17 deletions

View File

@@ -250,7 +250,8 @@ class ModuleLoaderBase : public nsISupports {
// Evaluate a module in the given context. Does not push an entry to the
// execution stack.
nsresult EvaluateModuleInContext(JSContext* aCx, ModuleLoadRequest* aRequest);
nsresult EvaluateModuleInContext(JSContext* aCx, ModuleLoadRequest* aRequest,
JS::ModuleErrorBehaviour errorBehaviour);
void StartDynamicImport(ModuleLoadRequest* aRequest);
void ProcessDynamicImport(ModuleLoadRequest* aRequest);