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

One-liner: Added a variable declaration for our for...in loop #1

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

torch2424
Copy link

Assigning @stephanis1494 since I think this is technically frontend related? 😅

But! This is a simple (kind of) fix I found while working on our rollup bundler in the medal-electron repo

This declares the i variable in the for...in loop, which for some reason, Electron complains about, but I think other JS engines let slide? Either way, in the for...in MDN Docs it mentions that this variable needs to be declared, thus, I think it's probably worth doing this either way. 😄

Screenshot of tests still passing

Screenshot 2023-02-14 150629

@torch2424 torch2424 added the bug Something isn't working label Feb 14, 2023
@torch2424 torch2424 self-assigned this Feb 14, 2023
@stephanis1494
Copy link

Very interesting! Quite surprised this isn't causing a crash tbh, thanks for tagging me on the review :)

@torch2424 torch2424 merged commit 1253790 into master Feb 14, 2023
@torch2424 torch2424 deleted the torch2424/syntax-fix branch February 14, 2023 23:42
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 this pull request may close these issues.

2 participants