Skip to content

Several fixes for reference types #1278

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

Merged
merged 3 commits into from
Jan 8, 2020
Merged

Conversation

aheejin
Copy link
Member

@aheejin aheejin commented Dec 27, 2019

- Allow `ref.func` for global initialization expressions
- Allow `nullref` as a full-fledged type, after
  WebAssembly/reference-types#66
- Enable reference types when exnref is used (The reference types
  proposal is a prerequisite of the EH proposal)
@aheejin
Copy link
Member Author

aheejin commented Jan 8, 2020

Ping :)

(Side note: Yesterday I commented on this thread about the difference between wast and wat or something, and that comment was meant for a completely different PR in Binaryen. Not sure why I ended up commenting here. If you saw it, please ignore it.)

@@ -142,7 +142,7 @@ out/test/spec/bulk-memory-operations/binary.wast:725: assert_malformed passed:
0000024: error: expected ref.null or ref.func in passive element segment
0000025: error: expected END opcode after element expression
out/test/spec/bulk-memory-operations/binary.wast:751: assert_malformed passed:
0000022: error: segment elem expr type must be funcref or anyref (got i32)
0000022: error: segment elem expr type must be reference types (got i32)
Copy link
Member

Choose a reason for hiding this comment

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

"must be a reference type"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@aheejin aheejin merged commit f644a03 into WebAssembly:master Jan 8, 2020
@aheejin aheejin deleted the reftype_fix branch January 8, 2020 23:08
Copy link
Member

@binji binji left a comment

Choose a reason for hiding this comment

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

lgtm too!

@sbc100 sbc100 mentioned this pull request Jan 9, 2020
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.

3 participants