From cccc7a6a66b00ab79626afe02f259aa5290d479c Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 21 Nov 2023 08:50:53 +0100 Subject: [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. --- src/parser/wat-parser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/parser/wat-parser.cpp') 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. } { -- cgit v1.2.3