summaryrefslogtreecommitdiff
path: root/test/parse/module/bad-binary-module-magic.txt
Commit message (Collapse)AuthorAgeFilesLines
* `wat2wasm` is no longer default TOOL for tests (#735)Ben Smith2018-01-251-1/+2
| | | The TOOL must specified explicitly.
* Remove BinaryErrorHandler, rename SourceErrorHandler (#553)Ben Smith2017-07-061-1/+1
| | | | | | | Since SourceErrorHandler can support binary locations, it doesn't make much sense to have two different error handlers. There is now only an ErrorHandler base class, and the first argument specifies whether the error handler is expecting text or binary locations.
* Update testsuite; more lexer/parser changes (#484)Ben Smith2017-06-111-2/+2
| | | | | | | | | | | | | | | | | | | | * Add support for quoted modules: `(module quote "...")` * Binary modules must be annotated: `(module binary "...")` * Multiple result blocks are no longer a parser error: `(func (result i32) (result i32) ...)` * Function types can specify unused bind variables: `(type (func (param $foo)))` * Rename `RawModule` -> `ScriptModule`. This encapsulates a module that may not be parsed yet, whether binary or "quoted". * Validate load/store offsets and alignment in the parser, not in the validator. The spec tests assume that you can catch these errors with `assert_malformed`. * Parse wast files in `wasm-interp` when checking malformed/invalid/etc. modules. This allows us to run all assertions at the same time, which is nice. `wasm-interp` should probably be renamed, though. * Two tests in `type.wast` fail because they use: `(assert_invalid (module quote "..."))`. I'd prefer that we don't support this, since it's unnecessary, and additional work. I'll fix in a follow-up CL if we decide this is worth keeping.
* Update test/run-tests.py (#255)Ben Smith2017-01-051-1/+1
| | | | | * Write all intermediate output to out/ * Use real paths for all test names (i.e. include "test/") * A few Python3 fixes
* Improve error message on bad file version (#103)Sam Clegg2016-09-211-1/+1
| | | | As a newcomer it was not obvious what version wasm-interp was expecting and what I had provided.
* defer decoding binary modules in assert_invalidBen Smith2016-05-111-3/+3
| | | | | | | | | | If we decode the binary module when parsing, then any errors will be displayed too early. Instead, we store the binary data, ready to be decoded. This is only done for assert_invalid, where we assume that the module will not actually be used. Otherwise, it is more convenient to always have a WasmModule, so we decode directly while parsing the AST.
* parse split segment strings; modules as binariesBen Smith2016-05-091-0/+9