wasm-tools 1.248.0

CLI tools for interoperating with WebAssembly files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
;; RUN: wast --assert default --snapshot tests/snapshots %

;; corrupt binary: multiple modules concatenated
(assert_malformed
  (module binary
    "\00asm" "\01\00\00\00" ;; magic header
    "\01\04"    ;; type section
    "\01"       ;; 1 count
    "\60\00\00" ;; no params or results
    "\00asm" "\01\00\00\00" ;; magic header
  )
  "expected section, got wasm magic number")