diff --git a/js/loader/ModuleLoaderBase.h b/js/loader/ModuleLoaderBase.h index de6a3ccd6beb..a57f8650d7fb 100644 --- a/js/loader/ModuleLoaderBase.h +++ b/js/loader/ModuleLoaderBase.h @@ -74,12 +74,14 @@ class ScriptLoaderInterface : public nsISupports { JS::MutableHandle aIntroductionScript) = 0; virtual void MaybePrepareModuleForBytecodeEncodingBeforeExecute( - JSContext* aCx, ModuleLoadRequest* aRequest) = 0; + JSContext* aCx, ModuleLoadRequest* aRequest) {} virtual nsresult MaybePrepareModuleForBytecodeEncodingAfterExecute( - ModuleLoadRequest* aRequest, nsresult aRv) = 0; + ModuleLoadRequest* aRequest, nsresult aRv) { + return NS_OK; + } - virtual void MaybeTriggerBytecodeEncoding() = 0; + virtual void MaybeTriggerBytecodeEncoding() {} }; /*