-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
bug in unused
on labelled for-loop
#1830
Comments
Doesn't surprise me - labelled loops are not very commonly used in the wild. Labelled loops/breaks/continues could be added to the fuzzer easily enough. |
Indeed - the attempt to fix #44 turns out to be incomplete thus causing this issue. The straightforward way is to wrap another layer of There is only one reason why // Original
var a = x(), b = y(), c = z();
console.log(b);
// Uglified
{
var b = (x(), y());
z(); <== if only I can pack this back up there
}
console.log(b); |
Sorry for being daft, but why is a new block needed at all? |
You can only replace That example wasn't accurate but merely illustrative, as it would be |
I see. OT 1: Nearly 300 lines for OT 2: Would save 2 bytes if |
I know - I had a hard time parsing this section of the codebase as well, especially with how it is called within
Fair point - let me see if I can make that happen with the clean up PR I was originally working on (which is another spin-off from #1821) |
I hope I haven't gone crazy, but this seems to be a pretty old bug:
The text was updated successfully, but these errors were encountered: