Update walrus and wasmparser deps (#2234)

* Update walrus and wasmparser deps

Gets some bug fixes and encoding updates for reference types

* Update test expectations

* Fix test for node 14.5
This commit is contained in:
Alex Crichton 2020-07-15 09:22:22 -05:00 committed by GitHub
parent 954a3c4fae
commit 45cf6a4f99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 18 additions and 19 deletions

View File

@ -18,13 +18,13 @@ log = "0.4"
rustc-demangle = "0.1.13"
serde_json = "1.0"
tempfile = "3.0"
walrus = "0.17.0"
walrus = "0.18.0"
wasm-bindgen-externref-xform = { path = '../externref-xform', version = '=0.2.64' }
wasm-bindgen-multi-value-xform = { path = '../multi-value-xform', version = '=0.2.64' }
wasm-bindgen-shared = { path = "../shared", version = '=0.2.64' }
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.64' }
wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.64' }
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.64' }
wit-text = "0.7.0"
wit-walrus = "0.4.0"
wit-text = "0.8.0"
wit-walrus = "0.5.0"
wit-validator = "0.2.0"

View File

@ -24,7 +24,7 @@ rouille = { version = "3.0.0", default-features = false }
serde = { version = "1.0", features = ['derive'] }
serde_derive = "1.0"
serde_json = "1.0"
walrus = { version = "0.17.0", features = ['parallel'] }
walrus = { version = "0.18.0", features = ['parallel'] }
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.64" }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.64" }
@ -34,11 +34,10 @@ diff = "0.1"
predicates = "1.0.0"
rayon = "1.0"
tempfile = "3.0"
walrus = "0.17"
wit-printer = "0.2"
wit-text = "0.7"
wit-text = "0.8"
wit-validator = "0.2"
wit-walrus = "0.4"
wit-walrus = "0.5"
[[test]]
name = "reference"

View File

@ -13,12 +13,12 @@ edition = '2018'
[dependencies]
anyhow = "1.0"
walrus = "0.17.0"
walrus = "0.18.0"
[dev-dependencies]
rayon = "1.0"
wasmprinter = "0.2"
wast = "17.0"
wast = "21.0"
wat = "1.0"
[[test]]

View File

@ -24,7 +24,7 @@
local.get 1
call $foo
local.get 1
ref.nullextern
ref.null extern
table.set 0
local.get 1
i32.const 1

View File

@ -33,7 +33,7 @@
local.get 4
call $a
local.get 5
ref.nullextern
ref.null extern
table.set 0
local.get 5
i32.const 1

View File

@ -26,7 +26,7 @@
local.get 1
call $foo)
(func $foo (type 1) (param i32)
ref.nullextern
ref.null extern
i32.const 0
table.grow 0
drop)

View File

@ -26,7 +26,7 @@
call $foo)
(func $foo (type 1) (param i32)
local.get 0
ref.nullextern
ref.null extern
table.set 0)
(func $alloc (type 0) (result i32)
i32.const 0)

View File

@ -13,12 +13,12 @@ edition = "2018"
[dependencies]
anyhow = "1.0"
walrus = "0.17.0"
walrus = "0.18.0"
[dev-dependencies]
rayon = "1.0"
wasmprinter = "0.2"
wast = "17.0"
wast = "21.0"
wat = "1.0"
[[test]]

View File

@ -13,5 +13,5 @@ edition = "2018"
[dependencies]
anyhow = "1.0"
walrus = "0.17.0"
walrus = "0.18.0"
wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.64" }

View File

@ -10,5 +10,5 @@ description = "Utilities for working with Wasm codegen conventions (usually esta
edition = "2018"
[dependencies]
walrus = "0.17.0"
walrus = "0.18.0"
anyhow = "1.0"

View File

@ -14,7 +14,7 @@ edition = '2018'
[dependencies]
anyhow = "1.0"
log = "0.4"
walrus = "0.17.0"
walrus = "0.18.0"
wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "0.2.64" }
[dev-dependencies]

View File

@ -200,7 +200,7 @@ exports.js_test_inspectable_classes = () => {
assert.deepStrictEqual(inspectable.toJSON(), { a: inspectable.a });
assert.strictEqual(inspectable.toString(), `{"a":${inspectable.a}}`);
// Inspectable classes in Node.js have improved console.log formatting as well
assert.strictEqual(console_log_to_string(inspectable), `Inspectable { a: ${inspectable.a} }`);
assert(console_log_to_string(inspectable).endsWith(`{ a: ${inspectable.a} }`));
// Non-inspectable classes do not have a toJSON or toString generated
assert.strictEqual(not_inspectable.toJSON, undefined);
assert.strictEqual(not_inspectable.toString(), '[object Object]');