Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch of additional tests #287

Merged
merged 4 commits into from
May 18, 2016
Merged

Batch of additional tests #287

merged 4 commits into from
May 18, 2016

Conversation

rossberg
Copy link
Member

For starters, more tests for:

  • block
  • unreachable
  • nop
  • comments

Also introduced a bit of sugar for exports. You can now write an export name as part of the function def itself:

(func "func-name" $func-name ...)

or, if the symbolic name isn't needed, just

(func "func-name" ...)

avoiding the tedious triple repetition of the name like before.

)

(func $effects (result i32)
(func "effects" $fx (result i32)
Copy link
Member

Choose a reason for hiding this comment

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

why should this be valid? i don't understand what two names for a function means

Copy link
Member

Choose a reason for hiding this comment

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

This is syntactic sugar for:

(export "effects" $fx)
(func $fx ...)

Copy link
Member

Choose a reason for hiding this comment

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

Oh, thanks! I missed this part of the issue text...

@sunfishcode
Copy link
Member

lgtm

@rossberg rossberg merged commit e6ec3d8 into master May 18, 2016
@rossberg rossberg deleted the mo-tests branch May 18, 2016 07:09
@rossberg rossberg restored the mo-tests branch May 18, 2016 07:10
@jfbastien jfbastien deleted the mo-tests branch May 18, 2016 17:23
ngzhian added a commit to ngzhian/spec that referenced this pull request Nov 4, 2021
The error messages don't match the tests yet (simd_lane.wast), that
still needs to be worked out in WebAssembly#287.
ngzhian added a commit to ngzhian/spec that referenced this pull request Nov 4, 2021
- lane indices are u8 (nats), negative values are now parse errors ("unexpected token"), as are values with a positive sign +0x1
- changed a bunch of "expected i8 literal" to "unexpected token", in order to differentiate these syntax errors we probably need to change the parser to match on a bunch of EXTRACT_LANE <token we don't care about>
- some "type mismatch" are now unexpected token

Fixed WebAssembly#287
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Oct 3, 2023
Fix a few typos in the MVP explainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants