| 1 |
(module |
| 2 |
(type $t (;0;) (func)) |
| 3 |
(type (;1;) (func (result anyref))) |
| 4 |
(type (;2;) (func (result nullref))) |
| 5 |
(type (;3;) (func (result funcref))) |
| 6 |
(type (;4;) (func (result nullfuncref))) |
| 7 |
(type (;5;) (func (result exnref))) |
| 8 |
(type (;6;) (func (result nullexnref))) |
| 9 |
(type (;7;) (func (result externref))) |
| 10 |
(type (;8;) (func (result nullexternref))) |
| 11 |
(type (;9;) (func (result (ref null $t)))) |
| 12 |
(global $null (;0;) nullref ref.null none) |
| 13 |
(global $nullfunc (;1;) nullfuncref ref.null nofunc) |
| 14 |
(global $nullexn (;2;) nullexnref ref.null noexn) |
| 15 |
(global $nullextern (;3;) nullexternref ref.null noextern) |
| 16 |
(global (;4;) anyref ref.null any) |
| 17 |
(global (;5;) anyref ref.null none) |
| 18 |
(global (;6;) funcref ref.null func) |
| 19 |
(global (;7;) funcref ref.null nofunc) |
| 20 |
(global (;8;) exnref ref.null exn) |
| 21 |
(global (;9;) exnref ref.null noexn) |
| 22 |
(global (;10;) externref ref.null extern) |
| 23 |
(global (;11;) externref ref.null noextern) |
| 24 |
(global (;12;) nullref ref.null none) |
| 25 |
(global (;13;) nullfuncref ref.null nofunc) |
| 26 |
(global (;14;) nullexnref ref.null noexn) |
| 27 |
(global (;15;) nullexternref ref.null noextern) |
| 28 |
(global (;16;) (ref null $t) ref.null $t) |
| 29 |
(global (;17;) (ref null $t) ref.null nofunc) |
| 30 |
(export "anyref" (func 0)) |
| 31 |
(export "nullref" (func 1)) |
| 32 |
(export "funcref" (func 2)) |
| 33 |
(export "nullfuncref" (func 3)) |
| 34 |
(export "exnref" (func 4)) |
| 35 |
(export "nullexnref" (func 5)) |
| 36 |
(export "externref" (func 6)) |
| 37 |
(export "nullexternref" (func 7)) |
| 38 |
(export "ref" (func 8)) |
| 39 |
(func (;0;) (type 1) (result anyref) |
| 40 |
global.get $null |
| 41 |
) |
| 42 |
(func (;1;) (type 2) (result nullref) |
| 43 |
global.get $null |
| 44 |
) |
| 45 |
(func (;2;) (type 3) (result funcref) |
| 46 |
global.get $nullfunc |
| 47 |
) |
| 48 |
(func (;3;) (type 4) (result nullfuncref) |
| 49 |
global.get $nullfunc |
| 50 |
) |
| 51 |
(func (;4;) (type 5) (result exnref) |
| 52 |
global.get $nullexn |
| 53 |
) |
| 54 |
(func (;5;) (type 6) (result nullexnref) |
| 55 |
global.get $nullexn |
| 56 |
) |
| 57 |
(func (;6;) (type 7) (result externref) |
| 58 |
global.get $nullextern |
| 59 |
) |
| 60 |
(func (;7;) (type 8) (result nullexternref) |
| 61 |
global.get $nullextern |
| 62 |
) |
| 63 |
(func (;8;) (type 9) (result (ref null $t)) |
| 64 |
global.get $nullfunc |
| 65 |
) |
| 66 |
) |