Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mono/wasm/runtime/startup.ts')
-rw-r--r--src/mono/wasm/runtime/startup.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mono/wasm/runtime/startup.ts b/src/mono/wasm/runtime/startup.ts
index 776a8eef168..3b3ec8f1486 100644
--- a/src/mono/wasm/runtime/startup.ts
+++ b/src/mono/wasm/runtime/startup.ts
@@ -16,6 +16,8 @@ import { find_corlib_class } from "./class-loader";
import { VoidPtr, CharPtr } from "./types/emscripten";
import { DotnetPublicAPI } from "./exports";
import { mono_on_abort } from "./run";
+import { initialize_marshalers_to_cs } from "./marshal-to-cs";
+import { initialize_marshalers_to_js } from "./marshal-to-js";
import { mono_wasm_new_root } from "./roots";
import { init_crypto } from "./crypto-worker";
import { init_polyfills } from "./polyfills";
@@ -452,6 +454,21 @@ export function bindings_lazy_init(): void {
if (!runtimeHelpers.get_call_sig_ref)
throw "Can't find GetCallSignatureRef method";
+ runtimeHelpers.complete_task_method = get_method("CompleteTask");
+ if (!runtimeHelpers.complete_task_method)
+ throw "Can't find CompleteTask method";
+
+ runtimeHelpers.create_task_method = get_method("CreateTaskCallback");
+ if (!runtimeHelpers.create_task_method)
+ throw "Can't find CreateTaskCallback method";
+
+ runtimeHelpers.call_delegate = get_method("CallDelegate");
+ if (!runtimeHelpers.call_delegate)
+ throw "Can't find CallDelegate method";
+
+ initialize_marshalers_to_js();
+ initialize_marshalers_to_cs();
+
_create_primitive_converters();
runtimeHelpers._box_root = mono_wasm_new_root<MonoObject>();