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

NRRDLoader: Make sure scan() always returns a typed array. #27212

Merged
merged 1 commit into from Nov 19, 2023

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Nov 19, 2023

Fixed #22018.

Description

This PR ensures the internal scan() function of NRRDLoader always returns a typed array. Previously, a number could be returned in a special case. However, this edge case isn't supported since it would produce a runtime error in subsequent code anyway. The details for this are explained in #22018.

@Mugen87 Mugen87 added this to the r159 milestone Nov 19, 2023
@Mugen87 Mugen87 merged commit a6a5d8b into mrdoob:dev Nov 19, 2023
11 checks passed
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
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.

Possible TypeError with NRRDLoader
1 participant