diff options
author | Ben Smith <binji@chromium.org> | 2022-06-03 09:09:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 09:09:37 -0700 |
commit | 57e6a58bfdd0babfd6f7fe401c9f2d8238ec3213 (patch) | |
tree | 32a95bfa692d31033fe269e79c8db2432b94bf50 /test/utils.py | |
parent | 83a226bcd1816c86fb1fcb0963c6a11e2c373aaf (diff) | |
download | wabt-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