diff options
author | Zoltan Varga <vargaz@gmail.com> | 2020-02-04 02:42:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 02:42:49 +0300 |
commit | 62a57c687c2f7cc1f029447e8a39a77a0414ba22 (patch) | |
tree | 882cb7bd45c5d3f391b8c029003291db48c2fdab /sdks | |
parent | d44a5d3a0bf24970a8cb03ddc1f9c94dcfa57949 (diff) |
[wasm] Set the 'top-runtime-invoke-unhandled' option so unhandled exceptions calls AppDomain.UnhandledException. (#18642)
Diffstat (limited to 'sdks')
-rw-r--r-- | sdks/wasm/src/driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sdks/wasm/src/driver.c b/sdks/wasm/src/driver.c index 6a15610a552..25a131d5630 100644 --- a/sdks/wasm/src/driver.c +++ b/sdks/wasm/src/driver.c @@ -42,6 +42,7 @@ void mono_aot_register_module (void **aot_info); char *monoeg_g_getenv(const char *variable); int monoeg_g_setenv(const char *variable, const char *value, int overwrite); void mono_free (void*); +int32_t mini_parse_debug_option (const char *option); static MonoClass* datetime_class; static MonoClass* datetimeoffset_class; @@ -342,6 +343,8 @@ mono_wasm_load_runtime (const char *managed_path, int enable_debugging) monoeg_g_setenv ("DOTNET_SYSTEM_GLOBALIZATION_INVARIANT", "1", 0); #endif + mini_parse_debug_option ("top-runtime-invoke-unhandled"); + mono_dl_fallback_register (wasm_dl_load, wasm_dl_symbol, NULL, NULL); #ifdef ENABLE_AOT |