Skip to content

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

@hgruniaux

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).

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