[wasm] Decrease the startup ceremony (#62587)
authorPavel Savara <pavelsavara@microsoft.com>
Fri, 10 Dec 2021 16:13:11 +0000 (17:13 +0100)
committerGitHub <noreply@github.com>
Fri, 10 Dec 2021 16:13:11 +0000 (17:13 +0100)
commit25c207351c4f57cf2daa98caaf327a8b8d83edb8
treeb874d4554eaa1ca08823ab250e6ad939e2ad9d11
parent7b2925b9d3920957f35a58f073e36556b18056be
[wasm] Decrease the startup ceremony (#62587)

* new API MONO.mono_run_main_and_exit and MONO.mono_run_main
* default onAbort
* console-v8-cjs sample
* reduced setup ceremony
12 files changed:
src/mono/sample/wasm/console-v8-cjs/Program.cs [new file with mode: 0644]
src/mono/sample/wasm/console-v8-cjs/Wasm.Console.V8.CJS.Sample.csproj [new file with mode: 0644]
src/mono/sample/wasm/console-v8-cjs/main.js [new file with mode: 0644]
src/mono/wasm/runtime/cjs/dotnet.cjs.pre.js
src/mono/wasm/runtime/dotnet.d.ts
src/mono/wasm/runtime/es6/dotnet.es6.pre.js
src/mono/wasm/runtime/export-types.ts
src/mono/wasm/runtime/exports.ts
src/mono/wasm/runtime/method-calls.ts
src/mono/wasm/runtime/run.ts [new file with mode: 0644]
src/mono/wasm/runtime/types/emscripten.ts
src/mono/wasm/test-main.js