summaryrefslogtreecommitdiff
path: root/test/binaryen.js/pass-arguments.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-12-15 14:02:53 -0800
committerGitHub <noreply@github.com>2022-12-15 22:02:53 +0000
commita9ebf0dd842dc5b239a233177cfc9ccbd675fba7 (patch)
treeaadf98032ac8c13bc1d466492072961907bb3ab9 /test/binaryen.js/pass-arguments.js
parentbead42c46d48e4c5584f035f7a805911dc59ae35 (diff)
downloadbinaryen-a9ebf0dd842dc5b239a233177cfc9ccbd675fba7.tar.gz
binaryen-a9ebf0dd842dc5b239a233177cfc9ccbd675fba7.tar.bz2
binaryen-a9ebf0dd842dc5b239a233177cfc9ccbd675fba7.zip
In --debug mode, print partial wasm data that was read (#5356)
If wasm-opt or wasm-dis are given an invalid binary, after the error message we can also print out the wasm we did manage to read. That includes global stuff like imports and also all the functions up until there. This can help debugging in some situations. Only do this when --debug is passed as it can be very verbose and in general users might not want it. This is technically easy to do, it turns out, since we already use a thrown exception on an error in parsing, and we fill up the wasm as we go, so it just contains what we've read so far, and we can just print it. Fixes #5344 Also switch an existing test's comments to ;; from # which was noticed here.
Diffstat (limited to 'test/binaryen.js/pass-arguments.js')
0 files changed, 0 insertions, 0 deletions