Skip to content

Commit

Permalink
Fix MONO exports not actually being callable through Module (dotnet#4…
Browse files Browse the repository at this point in the history
  • Loading branch information
kg authored Nov 14, 2020
1 parent 3ed1747 commit 6453852
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/mono/wasm/runtime/library_mono.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@ var MonoSupportLib = {
},

export_functions: function (module) {
module ["pump_message"] = MONO.pump_message;
module ["mono_load_runtime_and_bcl"] = MONO.mono_load_runtime_and_bcl;
module ["mono_load_runtime_and_bcl_args"] = MONO.mono_load_runtime_and_bcl_args;
module ["mono_wasm_load_bytes_into_heap"] = MONO.mono_wasm_load_bytes_into_heap;
module ["mono_wasm_load_icu_data"] = MONO.mono_wasm_load_icu_data;
module ["mono_wasm_get_icudt_name"] = MONO.mono_wasm_get_icudt_name;
module ["mono_wasm_globalization_init"] = MONO.mono_wasm_globalization_init;
module ["mono_wasm_get_loaded_files"] = MONO.mono_wasm_get_loaded_files;
module ["mono_wasm_new_root_buffer"] = MONO.mono_wasm_new_root_buffer;
module ["mono_wasm_new_root_buffer_from_pointer"] = MONO.mono_wasm_new_root_buffer_from_pointer;
module ["mono_wasm_new_root"] = MONO.mono_wasm_new_root;
module ["mono_wasm_new_roots"] = MONO.mono_wasm_new_roots;
module ["mono_wasm_release_roots"] = MONO.mono_wasm_release_roots;
module ["pump_message"] = MONO.pump_message.bind(MONO);
module ["mono_load_runtime_and_bcl"] = MONO.mono_load_runtime_and_bcl.bind(MONO);
module ["mono_load_runtime_and_bcl_args"] = MONO.mono_load_runtime_and_bcl_args.bind(MONO);
module ["mono_wasm_load_bytes_into_heap"] = MONO.mono_wasm_load_bytes_into_heap.bind(MONO);
module ["mono_wasm_load_icu_data"] = MONO.mono_wasm_load_icu_data.bind(MONO);
module ["mono_wasm_get_icudt_name"] = MONO.mono_wasm_get_icudt_name.bind(MONO);
module ["mono_wasm_globalization_init"] = MONO.mono_wasm_globalization_init.bind(MONO);
module ["mono_wasm_get_loaded_files"] = MONO.mono_wasm_get_loaded_files.bind(MONO);
module ["mono_wasm_new_root_buffer"] = MONO.mono_wasm_new_root_buffer.bind(MONO);
module ["mono_wasm_new_root_buffer_from_pointer"] = MONO.mono_wasm_new_root_buffer_from_pointer.bind(MONO);
module ["mono_wasm_new_root"] = MONO.mono_wasm_new_root.bind(MONO);
module ["mono_wasm_new_roots"] = MONO.mono_wasm_new_roots.bind(MONO);
module ["mono_wasm_release_roots"] = MONO.mono_wasm_release_roots.bind(MONO);
},

_base64Converter: {
Expand Down

0 comments on commit 6453852

Please sign in to comment.