summaryrefslogtreecommitdiff
path: root/test/utils.py
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2022-06-03 09:09:37 -0700
committerGitHub <noreply@github.com>2022-06-03 09:09:37 -0700
commit57e6a58bfdd0babfd6f7fe401c9f2d8238ec3213 (patch)
tree32a95bfa692d31033fe269e79c8db2432b94bf50 /test/utils.py
parent83a226bcd1816c86fb1fcb0963c6a11e2c373aaf (diff)
downloadwabt-57e6a58bfdd0babfd6f7fe401c9f2d8238ec3213.tar.gz
wabt-57e6a58bfdd0babfd6f7fe401c9f2d8238ec3213.tar.bz2
wabt-57e6a58bfdd0babfd6f7fe401c9f2d8238ec3213.zip
wast2json: write binary modules verbatim (#1932)
Previously any top-level module defined in a .wast file would be parsed and converted to a `Module` and stored in a `ModuleCommand`, since it may be used later by the script (e.g. via an `invoke` command). This means that when it was written out later it may have been changed, which is undesirable for binary and quoted modules. This change adds a new `ScriptModuleCommand`, which stores both a `Module` and a `ScriptModule`. The `Module` contains the parsed information, and the `ScriptModule` contains the original contents of the binary or quoted data. This fixes issue #1927.
Diffstat (limited to 'test/utils.py')
0 files changed, 0 insertions, 0 deletions