Bug when converting some strings begin with "Infinity"
Closed this issue · 2 comments
Clayblockunova commented
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?
fasttime commented
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.
JScrewIt/src/lib/optimizers/to-string-optimizer.js
Lines 193 to 198 in a58bc61
I will fix this as soon as I have a chance.