Commit 4af0630e844fe5c816f308e0ce8210d97c227951
added run
wanderer committed on 7/28/2017, 5:58:44 PMParent: 6ee57faff85ab7e24861a30fb065cc6bac49b9a1
Files changed
tests/wasm/run.wasm | added |
tests/wast/run.wast | added |
tests/wasm/run.wasm | ||
---|---|---|
@@ -1,0 +1,4 @@ | ||
1 | + asm ` `` testequals p #memory | |
2 | +onCreation onMessage | |
3 | + A | |
4 | + A A A |
tests/wast/run.wast | ||
---|---|---|
@@ -1,0 +1,19 @@ | ||
1 | +(module | |
2 | + (type $FUNCSIG$vii (func (param i32 i32))) | |
3 | + (import "test" "equals" (func $equals (param i32 i32))) | |
4 | + (table 0 anyfunc) | |
5 | + (memory $0 1) | |
6 | + (export "memory" (memory $0)) | |
7 | + (export "onCreation" (func $onCreation)) | |
8 | + (export "onMessage" (func $onMessage)) | |
9 | + (func $onCreation (param $0 i32) (result i32) | |
10 | + (i32.const 0) | |
11 | + ) | |
12 | + (func $onMessage (result i32) | |
13 | + (call $equals | |
14 | + (i32.const 0) | |
15 | + (i32.const 0) | |
16 | + ) | |
17 | + (i32.const 0) | |
18 | + ) | |
19 | +) |
Built with git-ssb-web