[release/8.0-rc2] [browser] Fix SIMD+EH check (#92439)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fri, 22 Sep 2023 01:54:40 +0000 (18:54 -0700)
committerGitHub <noreply@github.com>
Fri, 22 Sep 2023 01:54:40 +0000 (18:54 -0700)
commitb1dbbb964a4daba07fe13c4150133f1d5d41ceb0
tree76e30f02184b697ed33f3772445e04eecb2719f2
parent79bd0070701302c28aa820376c0b029d15f51ac0
[release/8.0-rc2] [browser] Fix SIMD+EH check (#92439)

* Move simd+eh check after emcripten provided build time values

* Call cwraps.mono_wasm_abort from runtimeHelpers.abort when cwraps are ready (onRuntimeInitializedAsync)

* Assign early mono_wasm_exit and abort even earlier

* Fire feature check before awaiting wasm download, but await it after.

* Whitespaces

---------

Co-authored-by: Marek FiĊĦera <mara@neptuo.com>
src/mono/wasm/runtime/globals.ts
src/mono/wasm/runtime/startup.ts