Skip to content

WebAssembly 3.0 type questions #1930

@zherczeg

Description

@zherczeg
(module
  (table 0 i32 (ref.null func))
)

This is reported as a SyntaxError. Is this mean that in both in text and binary format the non-reference types must be rejected before validation (malformed input)? The 3.0 spec says "The reference type is valid.", but it might refer to actual references only.

(module
  (func $f (param (ref struct)) (result (ref array))
    local.get 0
    ref.cast (ref array)
  )
)

Why this is valid?

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