summaryrefslogtreecommitdiff
path: root/test/spec/exception-handling
Commit message (Collapse)AuthorAgeFilesLines
* Issue a nicer error message on wasm components. (#2515)Dan Gohman2024-12-061-5/+5
| | | | | | | | | | | | Decode just enough of the component binary format to recognize when the input is a component, and issue a dedicated error message for it. Before: 0000008: error: bad wasm file version: 0x1000d (expected 0x1) After: 0000008: error: wasm components are not yet supported in this tool
* interp: Implement EHv4 (#2512)Soni L.2024-11-202-0/+60
| | | Continuation of #2470
* test: Move legacy exception handling tests (NFC) (#2498)Soni L.2024-10-318-113/+113
|
* Update testsuite (#2495)Keith Winstein2024-10-302-103/+149
| | | | | The memory64 `table.wast` test has started to depend on function-references and gc (which WABT doesn't support yet), so vendor an older version of the test.
* interp: Handle ref.null exn (#2497)Soni L.2024-10-291-0/+6
|
* Update testsuite and corresponding update to comment parser (#2416)Sam Clegg2024-05-136-81/+81
| | | | | | | The main change here is because `comments.wast` was updated to include a "quoted" module at the top level. Previously quoted modules had only been used as part of invalid or malformed assertion expressions.
* Update testsuite (#2287)Keith Winstein2023-10-243-180/+92
|
* Share reading/validation code between elem exprs & other const exprs (#2288)Keith Winstein2023-09-061-2/+1
| | | | | | This continues the work from #1783 and reduces special handling of elem exprs, by treating them the same as other const expressions (init expressions).
* spectest-interp: assert_malformed must error in reader alone (#2252)Keith Winstein2023-06-121-2/+1
| | | | | | Previously assert_malformed was treated the same as assert_invalid Also fixes a bug where spectest-interp wasn't trying to validate text modules (e.g. `(assert_invalid (module quote "...") "")`).
* BinaryReader/BinaryReaderIR: check for missing end markers (#2218)Keith Winstein2023-05-031-1/+1
|
* binary-reader.cc: expand max local count and fix error message (#2173)Keith Winstein2023-03-151-2/+2
| | | | | * binary-reader.cc: expand max local count and fix error message Fixes #1593
* Update testsuite (#2054)Sam Clegg2022-11-131-89/+91
| | | | | | | | | | | | | | | As well as the testsuite update there are two notable changes that come with it here. These can both be split out an landed first if it makes sense. 1. wasm2c now supports element sections containing externref. Currently only the null reference is supported. 2. element segments no longer use funcref as the default element type but instead, unless explicitly included in the binary, the element type defaults to the type of the table in which the segment is active. Fixes: #1612 #2022
* Update spec tests (#2003)Marcus Better2022-09-221-108/+108
|
* Track locations of Vars in BinaryReaderIR and BinaryReaderInterp (#1963)Keith Winstein2022-08-153-14/+14
| | | | - Rebase test output to match new location tracking on Vars - Eliminate single-argument Var() constructor.
* update br_table validation rule + enforce module validity in spectest-interp ↵Keith Winstein2022-04-138-8/+8
| | | | (#1895)
* Update testsuite. (#1872)Zoltan Herczeg2022-03-302-11/+12
|
* Update testsuite (#1795)Sam Clegg2022-01-101-85/+91
| | | | Remove test/binary/bad-function-missing-end.txt which is now covered upstream: https://github.com/WebAssembly/spec/pull/1405
* Remove check from binary-reader-interp.cc that the validator already ↵Sam Clegg2021-12-131-2/+2
| | | | | | | | | | catches. NFC (#1784) If you leave stuff on the stack at the end of an initializer expression use the same mechanims to report the error as we do for functions etc. In addition, improve such errors so its more obvious what is going on.
* Add error locations to BinaryReaderInterp (#1780)Sam Clegg2021-12-098-36/+36
| | | | I think it was always intended to work this way but was left as a TODO.
* Add specification tests for exception handling proposal (#1764)Asumu Takikawa2021-12-068-0/+754
This PR imports the spec tests from the Wasm testsuite repo and adds infrastructure to run them correctly. * Adds test expectations for exception handling proposal spec tests. * Adds missing tag signature matching code for import tests. * Adds support for the `assert_exception` command used in new tests. * Fix filename normalization for the spec test runner.