WASM instance setup (#11)

* Code for running wasm file.

* Add test for wasm exported function.

* Use target names for build files.

Co-authored-by: nabarun <nabarun@deepstacksoft.com>
This commit is contained in:
Ashwin Phatak
2021-12-28 16:08:04 +05:30
committed by nabarun
co-authored by nabarun
parent 987457992a
commit 1421ba5a9b
9 changed files with 93 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
// The entry file of your WebAssembly module.
export function add (a: i32, b: i32): i32 {
return a + b;
}
@@ -0,0 +1,6 @@
{
"extends": "assemblyscript/std/assembly.json",
"include": [
"./**/*.ts"
]
}