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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user