diff options
author | Zoltan Varga <vargaz@gmail.com> | 2020-06-05 15:00:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 15:00:46 +0300 |
commit | f27ccd0432af4cbe566d4efa4b6ceaa3bc9ff663 (patch) | |
tree | 08629f57f0da5401a1efb255610bfbffef059ca1 /sdks | |
parent | dda38c4d17b377263a8e543a51a4fbc7cd8761ec (diff) |
[wasm] Print out the real stack trace when load_runtime () fails. (#19918)
Diffstat (limited to 'sdks')
-rw-r--r-- | sdks/wasm/src/library_mono.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sdks/wasm/src/library_mono.js b/sdks/wasm/src/library_mono.js index c90507abd4f..dbe79e9b321 100644 --- a/sdks/wasm/src/library_mono.js +++ b/sdks/wasm/src/library_mono.js @@ -678,9 +678,8 @@ var MonoSupportLib = { load_runtime (vfs_prefix, enable_debugging); } catch (ex) { print ("MONO_WASM: load_runtime () failed: " + ex); - var err = new Error(); print ("MONO_WASM: Stacktrace: \n"); - print (err.stack); + print (ex.stack); var wasm_exit = Module.cwrap ('mono_wasm_exit', null, ['number']); wasm_exit (1); |