Skip to content

Support the updated reference types proposal #147

@alexcrichton

Description

@alexcrichton

There's been a few changes to the reference types proposal which I don't believe have been reflected into the C API. Notably I think a few things need to be added to fully support the reference types proposal:

  • wasm_val_t should be extended with a wasm_func_t or wasm_funcref_t variant in its union
  • Construction of a host-defined externref value should be supported, either through construction of wasm_ref_t directly or through a new type wasm_externref_t.
  • Given the lack of subtyping in reference types I'm not sure if the various conversion functions between wasm_ref_t and other types should still be supported (or if types like wasm_module_t should be convert-ible to references)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions