Skip to content

Conversation

@LeoVgr
Copy link
Contributor

@LeoVgr LeoVgr commented Aug 6, 2025

Fix null access when trying to use JSInterp while interpreting code that contains a switch case with a condition and no other instructions (see example below)

var t = 0;

// OK
switch {
    default:
        if (true)
            t = 1;
        t = 2;
}

// Crash
switch {
    default:
        if (true)
            t = 1;
}

@LeoVgr LeoVgr closed this Aug 7, 2025
@LeoVgr LeoVgr reopened this Aug 7, 2025
@ncannasse ncannasse merged commit eed530b into HaxeFoundation:master Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants