summaryrefslogtreecommitdiff
path: root/test/wast2json
Commit message (Collapse)AuthorAgeFilesLines
* wast-parser.cc: Fix a crash from failing (module quote ...) (#2509)Keith Winstein2024-11-121-0/+8
|
* wast2json: write binary modules verbatim (#1932)Ben Smith2022-06-031-0/+15
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.