Skip to content

Commit

Permalink
Update tests for new anyref syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed May 18, 2020
1 parent 6ba8c6c commit 61e8fc0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/cli-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ wasm-bindgen-shared = { path = "../shared", version = '=0.2.62' }
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.62' }
wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.62' }
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.62' }
wit-text = "0.1.1"
wit-text = "0.6.0"
wit-walrus = "0.2.0"
wit-validator = "0.1.0"
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ rayon = "1.0"
tempfile = "3.0"
walrus = "0.16"
wit-printer = "0.1"
wit-text = "0.1"
wit-text = "0.6"
wit-validator = "0.1"
wit-walrus = "0.2"

Expand Down
2 changes: 1 addition & 1 deletion crates/cli/tests/reference/anyref-empty.wat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(module
(type (;0;) (func))
(import "./reference_test_bg.js" "__wbindgen_init_anyref_table" (func (;0;) (type 0)))
(table (;0;) 32 anyref)
(table (;0;) 32 externref)
(memory (;0;) 16)
(export "memory" (memory 0))
(export "__wbindgen_export_0" (table 0))
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/tests/reference/anyref-import-catch.wat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(func $__wbindgen_exn_store (type 2) (param i32))
(func $__anyref_table_alloc (type 1) (result i32))
(func $exported (type 0))
(table (;0;) 32 anyref)
(table (;0;) 32 externref)
(memory (;0;) 17)
(export "memory" (memory 0))
(export "exported" (func $exported))
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/tests/reference/anyref-nop.wat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(type (;0;) (func))
(import "./reference_test_bg.js" "__wbindgen_init_anyref_table" (func (;0;) (type 0)))
(func $foo (type 0))
(table (;0;) 32 anyref)
(table (;0;) 32 externref)
(memory (;0;) 17)
(export "memory" (memory 0))
(export "foo" (func $foo))
Expand Down
4 changes: 2 additions & 2 deletions crates/cli/tests/reference/interface-types-anyref.wat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(module
(type (;0;) (func (param anyref anyref) (result anyref)))
(func $anyref_in_out anyref shim (type 0) (param anyref anyref) (result anyref))
(type (;0;) (func (param externref externref) (result externref)))
(func $anyref_in_out anyref shim (type 0) (param externref externref) (result externref))
(memory (;0;) 17)
(export "memory" (memory 0))
(export "anyref_in_out" (func $anyref_in_out anyref shim))
Expand Down

0 comments on commit 61e8fc0

Please sign in to comment.