Skip to content

Add C and JS API bindings for ref.as_* #3628

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 1 commit into from
Mar 1, 2021
Merged

Conversation

dcodeIO
Copy link
Contributor

@dcodeIO dcodeIO commented Feb 27, 2021

Adds C / JS bindings for the constants

  • BinaryenRefAsNonNull / Operations.RefAsNonNull
  • BinaryenRefAsFunc / Operations.RefAsFunc
  • BinaryenRefAsData / Operations.RefAsData
  • BinaryenRefAsI31 / Operations.RefAsI31

and the respective construction, inspection and modification APIs

  • BinaryenRefAs / RefAs wrapper, ref.as_non_null, ref.as_func, ref.as_data, ref.as_i31
  • BinaryenRefAsGetOp / RefAs#getOp
  • BinaryenRefAsSetOp / RefAs#setOp
  • BinaryenRefAsGetValue / RefAs#getValue
  • BinaryenRefAsSetValue / RefAs#setValue

plus descriptions and preliminary (cannot represent non-nullable reference types yet) tests.

@dcodeIO dcodeIO merged commit 0d83a4d into WebAssembly:main Mar 1, 2021
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.

2 participants