summaryrefslogtreecommitdiff
path: root/WebInterface/wasm/asm-paint/loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'WebInterface/wasm/asm-paint/loader.js')
-rw-r--r--WebInterface/wasm/asm-paint/loader.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebInterface/wasm/asm-paint/loader.js b/WebInterface/wasm/asm-paint/loader.js
index 8348c35..7313fa0 100644
--- a/WebInterface/wasm/asm-paint/loader.js
+++ b/WebInterface/wasm/asm-paint/loader.js
@@ -1,5 +1,6 @@
console.log('js> create import object');
-let importObject = { imports: { imported_func: arg => console.log(arg) } };
+let importObject = { imports: { my_alert: arg => alert(arg) } };
+//let importObject = {};
console.log('js> create fetch object');
@@ -9,7 +10,7 @@ console.log('js> instantiate streaming');
function and_then(obj) {
console.log('js> reached instantiate streaming\'s then');
- return obj.instance.exports.exported_func();
+ return obj.instance.exports.greet();
}
WebAssembly.instantiateStreaming(asm_paint_bg, importObject)