You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run the source through uglifyjs -c it works every time.
;-)
function foo() {return !1;}
for (var a = 0, b = 0, i = 0; i < 1e4; i++) foo() === !0 ? a++ : b++;
var pa = (a / (a + b) * 100).toFixed(2), pb = (b / (a + b) * 100).toFixed(2);
console.log("true " + pa + "%"), console.log("false " + pb + "%");
Activity
MylesBorins commentedon Jun 21, 2016
thanks for posting @cookiengineer we have a backport in the review process 😄
#7348
cookiengineer commentedon Jun 21, 2016
Awesome, just wanted to give you a hint about it. Most epic bug I've ever seen in a VM :) Haven't seen the backport pull request before.
kzc commentedon Jun 21, 2016
@cookiengineer Epic bug indeed.
If you run the source through
uglifyjs -cit works every time.;-)
RReverser commentedon Jun 27, 2016
Closing this as @thealphanerd's PR was merged.