fasttime/JScrewIt

Bug when converting some strings begin with "Infinity"

Closed this issue · 2 comments

when I tried to convert "Infinitywhitenight" in Edge, a 1201-chars-code is returned and evals into "infinit". why would this happen? will this be fixed?

There is a bug in an optimizer which is incorrectly assuming that a solutions source is always a single character, but the source could also be a string like "Infinity", "true", "undefined", etc.

function isClusterable(solution)
{
var char = solution.source;
var clusterable = char != null && /[\da-z]/.test(char);
return clusterable;
}

I will fix this as soon as I have a chance.

Fixed in 2.35.1. Thanks for reporting this!