Skip to content

do-while + switch + continue cause compiler crash #2101

Closed
@HerrCai0907

Description

@HerrCai0907

It cause compiler crash

export function foo(): void {
    let a = 9;
    do {
        switch (a) {
            case 0:
                continue;
        }
    } while (a < 3);
}

[wasm-validator error in function assembly/index/foo] unexpected false: all break targets must be valid, on
(br $do-continue|0)
FAILURE validate error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions