Skip to content

Returning undefined in switch does not return containing context #163

@Perryvw

Description

@Perryvw

Due to the way we implemented switch cases as functions, some extra logic is required to determine if a switch is supposed to return. Currently returns in switches do nothing at all, in #161 a workaround is introduced that returns any value that is not null or undefined.

The result is that code flow will continue even though the executing switch statement executed a return statement.

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