Skip to content

(ref null extern) fails parsing #2647

@eliben

Description

@eliben

According to the WASM spec, externref is an alias for (ref null extern).

While externref works well in .wat files (for wat2wasm), (ref null extern) doesn't seem to be supported, even with --enable-all:

error: unexpected token null, expected a numeric index or a name

The same error appears if I try to parse (ref extern) (without the null).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions