Skip to content

Assertion failed in wasm-as when casting to externref #6738

Description

@hgruniaux

The following WAT code:

(module
    (func (param eqref) (result externref)
        (ref.cast externref (local.get 0))))

crash the assembler with the following message:

Assertion failed: isRef() (/src/src/wasm/wasm-type.cpp: getHeapType: 930)

The problem is the cast to externref. The assembler should probably print an error message.

The crash was reproduced on the main branch (commit 22c28bd).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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