/// <summary> /// Set callback from chakracore to fetch dependent module. /// While this call will come back directly from ParseModuleSource, the additional /// task are treated as Promise that will be executed later. /// </summary> /// <param name="module"></param> /// <param name="callback"></param> public static void SetFetchModuleCallback(JavaScriptModuleRecord module, FetchImportedModuleDelegate callback) { Native.ThrowIfError(Native.JsFetchImportedModuleCallback(module, JavascriptModuleHostInfoKind.JsModuleHostInfo_FetchImportedModuleCallback, callback)); }