diff options
author | Thomas Lively <tlively@google.com> | 2024-01-03 13:36:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 13:36:27 -0800 |
commit | c923521a61205dd2358201e311b009886e095381 (patch) | |
tree | 4c28cc0bca3b82f74586aa7009d20835a9455a17 /src | |
parent | a6bc9542e98b4164d3a26c67c94b1136b4fc8b86 (diff) | |
download | binaryen-c923521a61205dd2358201e311b009886e095381.tar.gz binaryen-c923521a61205dd2358201e311b009886e095381.tar.bz2 binaryen-c923521a61205dd2358201e311b009886e095381.zip |
Drop support for type annotations on array.len (#6197)
These type annotations were removed during the development of the GC proposal,
but we maintained support for parsing them to ease the transition. Now that GC
is shipped, remove support for the non-standard annotation and update our tests
accordingly.
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-s-parser.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp index 42785e40e..9f5f412be 100644 --- a/src/wasm/wasm-s-parser.cpp +++ b/src/wasm/wasm-s-parser.cpp @@ -3160,14 +3160,7 @@ Expression* SExpressionWasmBuilder::makeArraySet(Element& s) { } Expression* SExpressionWasmBuilder::makeArrayLen(Element& s) { - // There may or may not be a type annotation. - Index i = 1; - try { - parseHeapType(*s[i]); - ++i; - } catch (...) { - } - auto ref = parseExpression(*s[i]); + auto ref = parseExpression(*s[1]); return Builder(wasm).makeArrayLen(ref); } |