diff options
author | Thomas Lively <tlively@google.com> | 2023-11-21 08:50:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 23:50:53 -0800 |
commit | cccc7a6a66b00ab79626afe02f259aa5290d479c (patch) | |
tree | 1f03896877a1d59ee9c7ae6c25194382f767e4c6 /src/parser/wat-parser.cpp | |
parent | beb816be810caa0b32ab37986e7cae6f6cf11b1b (diff) | |
download | binaryen-cccc7a6a66b00ab79626afe02f259aa5290d479c.tar.gz binaryen-cccc7a6a66b00ab79626afe02f259aa5290d479c.tar.bz2 binaryen-cccc7a6a66b00ab79626afe02f259aa5290d479c.zip |
[Parser] Parse tags and throw (#6126)
Also fix the parser to correctly error if an imported item appears after a
non-imported item and make the corresponding fix to the test.
Diffstat (limited to 'src/parser/wat-parser.cpp')
-rw-r--r-- | src/parser/wat-parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser/wat-parser.cpp b/src/parser/wat-parser.cpp index 7e106d3b9..be3bca5c8 100644 --- a/src/parser/wat-parser.cpp +++ b/src/parser/wat-parser.cpp @@ -146,6 +146,7 @@ Result<> parseModule(Module& wasm, std::string_view input) { CHECK_ERR(parseDefs(ctx, decls.funcDefs, func)); CHECK_ERR(parseDefs(ctx, decls.memoryDefs, memory)); CHECK_ERR(parseDefs(ctx, decls.globalDefs, global)); + CHECK_ERR(parseDefs(ctx, decls.tagDefs, tag)); // TODO: Parse types of other module elements. } { |