Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2019-12-12 19:23:42 +0300
committerGitHub <noreply@github.com>2019-12-12 19:23:42 +0300
commitfb67916c0f17ee5679eb679533ec7d49ff8f4eac (patch)
tree692efeeb7c3f589d714b312d9962be8939a8812b /sdks/wasm/runtime-tests.js
parent079acc2fb872517f53f2349a4e77eb55ea3a7bd4 (diff)
[wasm] Change mono_wasm_runtime_invoke () to return the exception itself in the out argument instead of a boolean. (#18135)
Diffstat (limited to 'sdks/wasm/runtime-tests.js')
-rw-r--r--sdks/wasm/runtime-tests.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/sdks/wasm/runtime-tests.js b/sdks/wasm/runtime-tests.js
index f91f3424bed..decaed50fec 100644
--- a/sdks/wasm/runtime-tests.js
+++ b/sdks/wasm/runtime-tests.js
@@ -276,11 +276,11 @@ var App = {
try {
var invoke_args = Module._malloc (4);
Module.setValue (invoke_args, app_args, "i32");
- var eh_throw = Module._malloc (4);
- Module.setValue (eh_throw, 0, "i32");
- var res = runtime_invoke (main_method, 0, invoke_args, eh_throw);
- var eh_res = Module.getValue (eh_throw, "i32");
- if (eh_res == 1) {
+ var eh_exc = Module._malloc (4);
+ Module.setValue (eh_exc, 0, "i32");
+ var res = runtime_invoke (main_method, 0, invoke_args, eh_exc);
+ var eh_res = Module.getValue (eh_exc, "i32");
+ if (eh_res != 0) {
print ("Exception:" + string_get_utf8 (res));
test_exit (1);
}