File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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- )
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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- )
11151105validation: 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)
You can’t perform that action at this time.
0 commit comments