Skip to content

Incompatible code generated with 1.12.6 using function call followed by if statement. #4568

Closed
@jo-soft

Description

@jo-soft

Until version 1.12.5 the code foo bar if baz transpiled to if(baz){foo(bar)}
since 1.12.6 this code transpiles to foo(baz ? bar: void 0) which breaks old code.

But when i use mood = greatlyImproved if singing (from docs) it compiles to if (singing) {mood = greatlyImproved;}
Is this indented? Maybe by 'Bugfixes for incorrect code generated by the ? operator within a termary if statement`? I cant find any Bug report for that.

bg,
Johannes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions