Open
Description
I observed this on the address.wast test, line 213:
(assert_malformed
(module quote
"(memory 1)"
"(func (drop (i32.load offset=4294967296 (i32.const 0))))"
)
"i32 constant"
)
Converted to JS via the spec interpreter (./wasm -d address.wast -o address.js
), it produces this check:
assert_malformed("\x3c\x6d\x61\x6c\x66\x6f\x72\x6d\x65\x64\x20\x71\x75\x6f\x74\x65\x3e");
This checks that the string <malformed quote>
is considered invalid Wasm, which is not a sensible test.
I am not sure what we should do instead, I guess the underlying problem is that the interpreter cannot convert the WAT to binary, so there is not much it can do. Maybe it should skip the test instead?
The same happens with assert_invalid
and any invalid string, e.g.
(assert_invalid
(module quote "(foobar)")
"foobar"
)
Metadata
Metadata
Assignees
Labels
No labels