Skip to content

Ternary operator scope #32343

@professorhantzen

Description

@professorhantzen
  • Version: 12.16.1, 12.9.1, 8.9.1 (as tested on-hand, it's probably in all versions)
  • Platform: Mac OSX

What steps will reproduce the bug?

console.log('comment out the scoped object below, and this will')
{}
(false) ? null : console.log('break');

Further:

console.log('remove the brackets from the ternary operator, and it will')
//{}
false ? null : console.log('work again');

How often does it reproduce?

Every time.

Metadata

Metadata

Assignees

No one assigned

    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