Skip to content

Fix GH-9905: constant() behaves inconsistent when class is undefined #9907

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

Closed
wants to merge 2 commits into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Nov 8, 2022

Directly referring to a constant of an undefined throws an exception; there is not much point in constant() raising a fatal error in this case.

Directly referring to a constant of an undefined throws an exception;
there is not much point in `constant()` raising a fatal error in this
case.
@cmb69 cmb69 linked an issue Nov 8, 2022 that may be closed by this pull request
Copy link
Member

@bwoebi bwoebi left a comment

Choose a reason for hiding this comment

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

Makes sense, really weird that this trivial runtime operation caused a hard fatal error.

@cmb69 cmb69 closed this in b2186ca Nov 9, 2022
@cmb69 cmb69 deleted the cmb/gh9905 branch November 9, 2022 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

constant() behaves inconsistent when class is undefined
2 participants