/// <summary> /// Set callback from chakracore to fetch module dynamically during runtime. /// While this call will come back directly from runtime script or module code, the additional /// task can be scheduled asynchronously that executed later. /// </summary> /// <param name="module"></param> /// <param name="callback"></param> public static void SetFetchModuleScriptCallback(JavaScriptModuleRecord module, FetchImportedModuleFromScriptDelegate callback) { Native.ThrowIfError(Native.JsFetchImportedModuleFromScriptyCallback(module, JavascriptModuleHostInfoKind.JsModuleHostInfo_FetchImportedModuleFromScriptCallback, callback)); }