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

Never throw literal #23137

Merged
merged 3 commits into from
Jan 3, 2022
Merged

Never throw literal #23137

merged 3 commits into from
Jan 3, 2022

Conversation

gero3
Copy link
Contributor

@gero3 gero3 commented Jan 3, 2022

Supplements #23135

Description

Always throw an error instead of a literal. Catching code may expect the thrown object to having the usual message, stack trace, and name properties that appear on Errors.

@mrdoob mrdoob added this to the r137 milestone Jan 3, 2022
@mrdoob mrdoob merged commit cad5c54 into mrdoob:dev Jan 3, 2022
@mrdoob
Copy link
Owner

mrdoob commented Jan 3, 2022

Thanks!

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.

2 participants