Update deps and tests for anyref --> externref

* Update to using `wasmparser` 0.55.0
* Update wasmprinter to 0.2.5
* Update `wat` to 1.0.18, and `wast` to 17.0.0
This commit is contained in:
Nick Fitzgerald
2020-05-13 10:26:29 -07:00
parent 0c8c3f588a
commit 1a4f3fb2df
26 changed files with 155 additions and 183 deletions

View File

@@ -1,11 +1,11 @@
(module
(func (result nullref)
ref.null
(func (result externref)
(ref.null extern)
)
(func (result nullref)
(block (result nullref)
ref.null
(func (result externref)
(block (result externref)
(ref.null extern)
)
)
)

View File

@@ -1,12 +1,12 @@
(module
(func $imported (import "env" "f") (param i32) (result i32))
(func $local (result anyref anyref funcref funcref)
(func $local (result externref externref funcref funcref)
global.get 0
global.get 1
global.get 2
global.get 3)
(global (export "anyref-imported") anyref (ref.func $imported))
(global (export "anyref-local") anyref (ref.func $local))
(global (export "externref-imported") externref (ref.func $imported))
(global (export "externref-local") externref (ref.func $local))
(global (export "funcref-imported") funcref (ref.func $imported))
(global (export "funcref-local") funcref (ref.func $local)))

View File

@@ -5,15 +5,15 @@
i32.const 1
select)
(func $typed-select-1 (result anyref)
ref.null
ref.null
(func $typed-select-1 (result externref)
ref.null extern
ref.null extern
i32.const 1
select (result anyref))
select (result externref))
(func $typed-select-2 (param anyref) (result anyref)
ref.null
(func $typed-select-2 (param externref) (result externref)
ref.null extern
local.get 0
i32.const 1
select (result anyref))
select (result externref))
)