Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler: don't fail when typeof argument doesn't have a type #6045

Merged
merged 1 commit into from May 2, 2018

Conversation

asterite
Copy link
Member

@asterite asterite commented May 1, 2018

Fixes #5717

This reverts a bug that was introduced that did raise bug when the expression given to a typeof didn't have a type.

Not having a type is something that the compiler should be very resilient to, because it can mean an unreachable path (as in the examples shown in the specs) that will later simply be not emitted in the codegen phase.

Copy link
Contributor

@ysbaddaden ysbaddaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mostly trust you here.

@asterite asterite merged commit 0d61684 into master May 2, 2018
@RX14 RX14 added this to the Next milestone May 3, 2018
@straight-shoota straight-shoota deleted the bug/5717-typeof-regression branch November 16, 2021 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants