diff options
author | Thomas Lively <tlively@google.com> | 2023-03-16 11:45:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-16 09:45:40 -0700 |
commit | 2b326379e7deac4b37e0db5f064d06f7daf46aac (patch) | |
tree | 7df9d7608f5595cc2170d3620b426c6041756eeb /src/wasm/wasm-binary.cpp | |
parent | 9a744b2b373eabbe3b64deaa6cddc09cde5e8fca (diff) | |
download | binaryen-2b326379e7deac4b37e0db5f064d06f7daf46aac.tar.gz binaryen-2b326379e7deac4b37e0db5f064d06f7daf46aac.tar.bz2 binaryen-2b326379e7deac4b37e0db5f064d06f7daf46aac.zip |
Add bulk-array.wast spec test outline (#5568)
Add spec/bulk-array.wast, which contains an outline of the tests that will be
necessary for the upcoming bulk array instructions: array.copy (already
implemented), array.fill, array.init_data, and array.init_elem. Although the
test file does not actually contain any tests yet, it contains some setup code
defining types, globals, and element segments that the tests will use. Fix
miscellaneous bugs in parsing, validation, and printing to allow this setup code
to run without issues.
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index 518a809fa..9368325b0 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -3222,9 +3222,6 @@ void WasmBinaryBuilder::readElementSegments() { if (isPassive || hasTableIdx) { if (usesExpressions) { segment->type = getType(); - if (!segment->type.isFunction()) { - throwError("Invalid type for a usesExpressions element segment"); - } } else { auto elemKind = getU32LEB(); if (elemKind != 0x0) { |