Skip to content

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