-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
let assigment breaks typeof #33462
Copy link
Copy link
Closed
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Metadata
Metadata
Assignees
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Every single time. If you use
letto define a variable and in the assignment part you check if the same variable exists, you won't be able to usetypeofafter.What is the expected behavior?
I would expect
typeofshould always work regardless of the variableaexisting or not.What do you see instead?
Uncaught ReferenceError: a is not defined
Additional information
This appear to be an issue in Chromium since it works as expected in Firefox.