Skip to content
Snippets Groups Projects
Commit 09a45f06 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

globalThis[exception] is no longer a funciton, so just throw an error with the two strings

parent eef9d6ff
No related branches found
No related tags found
1 merge request!141npm package config
......@@ -460,16 +460,15 @@
},
// func Throw(exception, message unsafe.Pointer)
"gitlab.com/elixxir/wasm-utils/exception.throw": (sp) => {
const exception = loadString(sp + 8)
const message = loadString(sp + 24)
throw globalThis[exception](message)
const exception = loadString(sp + 8);
const message = loadString(sp + 24);
throw new Error(exception + ": " + message);
},
'runtime.Throw': (sp) => {
const exception = loadString(sp + 8)
const message = loadString(sp + 24)
throw globalThis[exception](message)
const exception = loadString(sp + 8);
const message = loadString(sp + 24);
throw new Error(exception + ": " + message);
},
}
};
this.importObject.go = this.importObject.gojs;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment