We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Packing this example code with setInterval refactor and loop var "t":
t=0;setInterval(function(e){t++},33)
preprocessed code is:
if(!f){}f++
should be simplified to:
f++
packed code is:
for(_='if(!f){}f++';G=/[]/.exec(_);)with(_.split(G))_=join(shift(f=0));setInterval(_,33)
for(_='f++';G=/[]/.exec(_);)with(_.split(G))_=join(shift(f=0));setInterval(_,33)
cheers!
The text was updated successfully, but these errors were encountered:
You mean you do not have any initialization code ? That is, code that is run once before entering the loop. Is is an example from a real demo ?
I did not expect that case to happen, but it should be easy to solve.
Sorry, something went wrong.
My real-life demo is very near from the example I sent above:
t=0;setInterval(function(){t?play():init();t++},33)
(with "play()" and "init()" replaced by big chunks of code.)
unfortunately, this packs as:
for(_='if(!t){}t?play():init();t++';G=/[]/.exec(_);)with(_.split(G))_=join(shift(t=0));setInterval(_,33)
I'm not asking you to support ternaries a?b:c, but if you could remove the if(!t){} fragment when the braces are empty, that'd be great.
a?b:c
if(!t){}
#72 : cut initialization block if none in original code
84afec6
Removed the code if(!f){} if there is no initialization code, neither at the beginning nor the end. Adapted thermal view as well.
if(!f){}
Siorki
No branches or pull requests
Packing this example code with setInterval refactor and loop var "t":
preprocessed code is:
should be simplified to:
packed code is:
should be simplified to:
cheers!
The text was updated successfully, but these errors were encountered: