Closed yichung279 closed 3 years ago
If it is not necessary, I remove it in #116
Although both work, this was added as the resulting jsfuck is shorter when representing ASCII chars using the ISO-8859-1 escape notation (\XXX (where XXX is 1–3 octal digits; range of 0–377)
). See pull requests #93 and #88 :)
This was done to optimize the length of resulting code
Oh, I see. What a great work!
In
escapeSequence()
,characters whose charCodes is under 256 will turn into ascii code. However, it works well if we treat it as utf-16. Both"\141"
and"\u0061"
represent"a"
. https://github.com/aemkei/jsfuck/blob/94c38357375e5009ebeb97fcc6934aaea482b210/jsfuck.js#L232-L240Is
a necessary statement?