Update dependencies and use new walrus custom sections APIs

This commit is contained in:
Nick Fitzgerald
2019-05-17 14:54:31 -07:00
parent 40ec810b86
commit d422436487
7 changed files with 14 additions and 20 deletions

View File

@ -94,11 +94,11 @@ fn rmain() -> Result<(), Error> {
// `wasm_bindgen_test_configure` macro, which emits a custom section for us
// to read later on.
let mut node = true;
for custom in wasm.custom.iter() {
if custom.name != "__wasm_bindgen_test_unstable" {
for (_id, custom) in wasm.customs.iter() {
if custom.name() != "__wasm_bindgen_test_unstable" {
continue;
}
node = !custom.value.contains(&0x01);
node = !custom.data().contains(&0x01);
}
let headless = env::var("NO_HEADLESS").is_err();
let debug = env::var("WASM_BINDGEN_NO_DEBUG").is_err();