Skip to content

Commit 4231ff2

Browse files
authored
fix some tests that broke due to recent merges (#1287)
1 parent 0cc695e commit 4231ff2

3 files changed

Lines changed: 6 additions & 20 deletions

File tree

test/binaryen.js/call_import_error.js.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,3 @@
1111
[wasm-validator error in function $main] unexpected false: call target must exist, on
1212
[none] (call $fn)
1313
(perhaps it should be a CallImport instead of Call?)
14-
(module
15-
(type $v (func))
16-
(import "env" "fn" (func $fn))
17-
(memory $0 0)
18-
(export "main" (func $main))
19-
(func $main (; 1 ;) (type $v)
20-
(call $fn)
21-
)
22-
)

test/binaryen.js/kitchen-sink.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ function test_ids() {
6363
console.log("BinaryenUnaryId: " + Binaryen.UnaryId);
6464
console.log("BinaryenBinaryId: " + Binaryen.BinaryId);
6565
console.log("BinaryenSelectId: " + Binaryen.SelectId);
66+
console.log("BinaryenDropId: " + Binaryen.DropId);
6667
console.log("BinaryenReturnId: " + Binaryen.ReturnId);
6768
console.log("BinaryenHostId: " + Binaryen.HostId);
6869
console.log("BinaryenNopId: " + Binaryen.NopId);

test/binaryen.js/kitchen-sink.js.txt

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,20 +1098,10 @@ module loaded from binary form:
10981098
)
10991099
)
11001100

1101-
[wasm-validator error in function $func] 1 != 2: set_local type must match function, on
1101+
[wasm-validator error in function $func] 1 != 2: set_local type must match function, on
11021102
[none] (set_local $0
11031103
[i64] (i64.const 1234)
11041104
)
1105-
(module
1106-
(type $v (func))
1107-
(memory $0 0)
1108-
(func $func (; 0 ;) (type $v)
1109-
(local $0 i32)
1110-
(set_local $0
1111-
(i64.const 1234)
1112-
)
1113-
)
1114-
)
11151105
validation: 0
11161106
// beginning a Binaryen API trace
11171107
#include <math.h>
@@ -1394,6 +1384,10 @@ int main() {
13941384
expressions[244] = BinaryenReturn(the_module, expressions[243]);
13951385
expressions[245] = BinaryenNop(the_module);
13961386
expressions[246] = BinaryenUnreachable(the_module);
1387+
BinaryenExpressionGetId(expressions[30]);
1388+
getExpressionId=16
1389+
BinaryenExpressionGetType(expressions[30]);
1390+
getExpressionType=3
13971391
BinaryenExpressionPrint(expressions[30]);
13981392
(f32.neg
13991393
(f32.const -33.61199951171875)

0 commit comments

Comments
 (0)