From 80c3ce0ca777e97be2616e512e42e3930ff65804 Mon Sep 17 00:00:00 2001 From: Jono Wenger <jono@elixxir.io> Date: Thu, 8 Sep 2022 15:37:02 -0700 Subject: [PATCH] Update throw package in wasm_exec.js --- examples/wasm_exec.js | 2 +- test/assets/wasm_exec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/wasm_exec.js b/examples/wasm_exec.js index 634d5628..bba4a840 100644 --- a/examples/wasm_exec.js +++ b/examples/wasm_exec.js @@ -510,7 +510,7 @@ }, // func throw(exception string, message string) - 'gitlab.com/elixxir/xxdk-wasm/wasm.throw': (sp) => { + 'gitlab.com/elixxir/xxdk-wasm/utils.throw': (sp) => { const exception = loadString(sp + 8) const message = loadString(sp + 24) throw globalThis[exception](message) diff --git a/test/assets/wasm_exec.js b/test/assets/wasm_exec.js index 528d7465..c613dfc6 100644 --- a/test/assets/wasm_exec.js +++ b/test/assets/wasm_exec.js @@ -503,7 +503,7 @@ }, // func throw(exception string, message string) - 'gitlab.com/elixxir/xxdk-wasm/wasm.throw': (sp) => { + 'gitlab.com/elixxir/xxdk-wasm/utils.throw': (sp) => { const exception = loadString(sp + 8) const message = loadString(sp + 24) throw globalThis[exception](message) -- GitLab