diff options
author | Thomas Lively <tlively@google.com> | 2024-06-18 18:34:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-18 18:34:53 -0700 |
commit | 02c4c3cd43a2033a7fd2f5c75f6d92ac9b80bb4b (patch) | |
tree | 6ba496717a64c8a5e127f6a8fc8e628d0bc46300 /src/parser | |
parent | 2df678e4670517eaac40d1d2d9541d3b706b324b (diff) | |
download | binaryen-02c4c3cd43a2033a7fd2f5c75f6d92ac9b80bb4b.tar.gz binaryen-02c4c3cd43a2033a7fd2f5c75f6d92ac9b80bb4b.tar.bz2 binaryen-02c4c3cd43a2033a7fd2f5c75f6d92ac9b80bb4b.zip |
Re-enable binary.wast spec test (#6677)
Fix the wast parser to accept IDs on quoted modules, remove tests that are
invalidated by the multimemory proposal, and add validation that the total
number of variables in a function is less than 2^32 and that the code section is
present if there is a non-empty function section.
Diffstat (limited to 'src/parser')
-rw-r--r-- | src/parser/wast-parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser/wast-parser.cpp b/src/parser/wast-parser.cpp index 9473da9fb..137ef0df1 100644 --- a/src/parser/wast-parser.cpp +++ b/src/parser/wast-parser.cpp @@ -77,6 +77,8 @@ Result<WASTModule> wastModule(Lexer& in, bool maybeInvalid = false) { if (!in.takeSExprStart("module"sv)) { return in.err("expected module"); } + // TODO: use ID? + [[maybe_unused]] auto id = in.takeID(); QuotedModuleType type; if (in.takeKeyword("quote"sv)) { type = QuotedModuleType::Text; |