|
13 | 13 | (global $features/reference-types/externGlobalInit (mut externref) (ref.null extern))
|
14 | 14 | (global $features/reference-types/anyGlobal (mut anyref) (ref.null any))
|
15 | 15 | (global $features/reference-types/anyGlobalInit (mut anyref) (ref.null any))
|
16 |
| - (global $features/reference-types/otherFuncGlobal (mut funcref) (ref.null func)) |
| 16 | + (global $features/reference-types/otherFuncGlobal (mut funcref) (ref.func $features/reference-types/someFunc)) |
| 17 | + (global $features/reference-types/a externref (ref.null extern)) |
| 18 | + (global $features/reference-types/b funcref (ref.null func)) |
17 | 19 | (global $~lib/memory/__data_end i32 (i32.const 92))
|
18 | 20 | (global $~lib/memory/__stack_pointer (mut i32) (i32.const 16476))
|
19 | 21 | (global $~lib/memory/__heap_base i32 (i32.const 16476))
|
|
26 | 28 | (export "somethingReal" (func $features/reference-types/somethingReal))
|
27 | 29 | (export "somethingNull" (func $features/reference-types/somethingNull))
|
28 | 30 | (export "internal" (func $features/reference-types/internal))
|
| 31 | + (export "a" (global $features/reference-types/a)) |
| 32 | + (export "b" (global $features/reference-types/b)) |
29 | 33 | (export "memory" (memory $0))
|
30 | 34 | (start $~start)
|
31 | 35 | (func $features/reference-types/testLocal<funcref>
|
|
268 | 272 | call $~lib/builtins/abort
|
269 | 273 | unreachable
|
270 | 274 | end
|
271 |
| - ref.null func |
272 |
| - global.set $features/reference-types/funcGlobalInit |
273 | 275 | global.get $features/reference-types/funcGlobalInit
|
274 | 276 | ref.is_null
|
275 | 277 | i32.eqz
|
|
311 | 313 | call $~lib/builtins/abort
|
312 | 314 | unreachable
|
313 | 315 | end
|
314 |
| - ref.null extern |
315 |
| - global.set $features/reference-types/externGlobalInit |
316 | 316 | global.get $features/reference-types/externGlobalInit
|
317 | 317 | ref.is_null
|
318 | 318 | i32.eqz
|
|
354 | 354 | call $~lib/builtins/abort
|
355 | 355 | unreachable
|
356 | 356 | end
|
357 |
| - ref.null any |
358 |
| - global.set $features/reference-types/anyGlobalInit |
359 | 357 | global.get $features/reference-types/anyGlobalInit
|
360 | 358 | ref.is_null
|
361 | 359 | i32.eqz
|
|
384 | 382 | call $~lib/builtins/abort
|
385 | 383 | unreachable
|
386 | 384 | end
|
387 |
| - ref.func $features/reference-types/someFunc |
388 |
| - global.set $features/reference-types/otherFuncGlobal |
389 | 385 | global.get $features/reference-types/otherFuncGlobal
|
390 | 386 | ref.is_null
|
391 | 387 | if
|
|
0 commit comments