Skip to content

Commit 61e8fc0

Browse files
committed
Update tests for new anyref syntax
1 parent 6ba8c6c commit 61e8fc0

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

crates/cli-support/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ wasm-bindgen-shared = { path = "../shared", version = '=0.2.62' }
2525
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.62' }
2626
wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.62' }
2727
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.62' }
28-
wit-text = "0.1.1"
28+
wit-text = "0.6.0"
2929
wit-walrus = "0.2.0"
3030
wit-validator = "0.1.0"

crates/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ rayon = "1.0"
3636
tempfile = "3.0"
3737
walrus = "0.16"
3838
wit-printer = "0.1"
39-
wit-text = "0.1"
39+
wit-text = "0.6"
4040
wit-validator = "0.1"
4141
wit-walrus = "0.2"
4242

crates/cli/tests/reference/anyref-empty.wat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(module
22
(type (;0;) (func))
33
(import "./reference_test_bg.js" "__wbindgen_init_anyref_table" (func (;0;) (type 0)))
4-
(table (;0;) 32 anyref)
4+
(table (;0;) 32 externref)
55
(memory (;0;) 16)
66
(export "memory" (memory 0))
77
(export "__wbindgen_export_0" (table 0))

crates/cli/tests/reference/anyref-import-catch.wat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(func $__wbindgen_exn_store (type 2) (param i32))
77
(func $__anyref_table_alloc (type 1) (result i32))
88
(func $exported (type 0))
9-
(table (;0;) 32 anyref)
9+
(table (;0;) 32 externref)
1010
(memory (;0;) 17)
1111
(export "memory" (memory 0))
1212
(export "exported" (func $exported))

crates/cli/tests/reference/anyref-nop.wat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
(type (;0;) (func))
33
(import "./reference_test_bg.js" "__wbindgen_init_anyref_table" (func (;0;) (type 0)))
44
(func $foo (type 0))
5-
(table (;0;) 32 anyref)
5+
(table (;0;) 32 externref)
66
(memory (;0;) 17)
77
(export "memory" (memory 0))
88
(export "foo" (func $foo))

crates/cli/tests/reference/interface-types-anyref.wat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(module
2-
(type (;0;) (func (param anyref anyref) (result anyref)))
3-
(func $anyref_in_out anyref shim (type 0) (param anyref anyref) (result anyref))
2+
(type (;0;) (func (param externref externref) (result externref)))
3+
(func $anyref_in_out anyref shim (type 0) (param externref externref) (result externref))
44
(memory (;0;) 17)
55
(export "memory" (memory 0))
66
(export "anyref_in_out" (func $anyref_in_out anyref shim))

0 commit comments

Comments
 (0)