diff options
author | Kenneth Pouncey <kjpou@pt.lu> | 2019-10-21 14:50:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 14:50:57 +0300 |
commit | 3ff90ac0c20ad4349cdf7e6367c2c913a28dbcca (patch) | |
tree | 5c56e69e1a5c27930d97a2158a0432a3c1248c44 /sdks | |
parent | 9f50bdb2d944793d30ea2d052cdad96feb282003 (diff) |
Export `mono_load_runtime_and_bcl` so that is available in nodejs. (#17456)
Diffstat (limited to 'sdks')
-rw-r--r-- | sdks/wasm/src/library_mono.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sdks/wasm/src/library_mono.js b/sdks/wasm/src/library_mono.js index 7f5bba64abc..0c1e801afd2 100644 --- a/sdks/wasm/src/library_mono.js +++ b/sdks/wasm/src/library_mono.js @@ -1,6 +1,6 @@ var MonoSupportLib = { - $MONO__postset: 'Module["pump_message"] = MONO.pump_message', + $MONO__postset: 'MONO.export_functions (Module);', $MONO: { pump_count: 0, timeout_queue: [], @@ -19,6 +19,11 @@ var MonoSupportLib = { } }, + export_functions: function (module) { + module ["pump_message"] = MONO.pump_message; + module ["mono_load_runtime_and_bcl"] = MONO.mono_load_runtime_and_bcl; + }, + mono_wasm_get_call_stack: function() { if (!this.mono_wasm_current_bp_id) this.mono_wasm_current_bp_id = Module.cwrap ("mono_wasm_current_bp_id", 'number', [ ]); |