Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Conversation

@Honry
Copy link
Contributor

@Honry Honry commented Nov 4, 2019

New tests for 64x2 constant and more literal
testing per WAVM/WAVM#195

 New tests for 64x2 constant and more literal
 testing per WAVM/WAVM#195
@Honry Honry mentioned this pull request Nov 4, 2019
)
(assert_malformed
(module quote "(func (v128.const i8x16 0x 0x 0x 0x 0x 0x 0x 0x 0x 0x 0x 0x 0x 0x 0x 0x) drop)")
"unknown operator"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this message "unknown operator" instead of something more specifically about malformed constants? Changing it would be out of scope here, obviously, but I am curious.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasm interpreter verifies all error messages but WAVM doesn't.

In current interpreter, "unknown operator" contains malformed constants. That's why it's unknown operator here. But there should be a specific message for malformed constants, it's a new feature request for interpreter. :)

@arunetm arunetm merged commit 2687b1b into WebAssembly:master Nov 5, 2019
Honry added a commit to Honry/simd that referenced this pull request Mar 11, 2020
Honry added a commit to Honry/simd that referenced this pull request Mar 11, 2020
Honry added a commit to Honry/simd that referenced this pull request Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants