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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkInfiniteRange throws error when running in Electron #3876

Closed
calebfoss opened this issue May 15, 2024 · 0 comments 路 Fixed by #3878
Closed

checkInfiniteRange throws error when running in Electron #3876

calebfoss opened this issue May 15, 2024 · 0 comments 路 Fixed by #3878
Labels
bug Something isn't working

Comments

@calebfoss
Copy link

calebfoss commented May 15, 2024

Bug Report 馃悰

I am working on a game using the Remotion player.

When the game runs in Electron via the Itch.io app, a checkInfiniteRange function throws the error "inputRange must contain only numbers." When I check the debugger, the array it is checking does, in fact, only include numbers (specifically it is [-1, -0, 1]), but the for...in loop is checking a property called "at," which looks like it's referring to this method.

I tried running a for...in loop on an array in the console within the Itch.io app, and oddly enough, "at" is the only property name it iterates over beyond the indices. I tried a for...of loop, and it only iterated over the array elements, not the at method.

I'm not sure why this would only happen in Electron (or maybe it's specific to Itch?), but I'm wondering if that loop would work better as a for...of so that it's only checking the array element values and not iterating over the property names.

I'm using version 4.0.125, but I checked the current implementation, and it looks like it would have the same issue.

Edits: added version number and troubleshooting info regarding for...in

@calebfoss calebfoss added the bug Something isn't working label May 15, 2024
@JonnyBurger JonnyBurger linked a pull request May 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant