aemkei / jsfuck

Write any JavaScript with 6 Characters: []()!+
jsfuck.com
Do What The F*ck You Want To Public License
8.16k stars 674 forks source link

Optimize a few characters #19

Closed alokmenghrajani closed 10 years ago

hazzik commented 11 years ago

y does not work - returns 'undefined' [, ], } - different browsers have different output for [native code]: Firefox/Safari 5:

"function filter() {
    [native code]
}"

Chrome/node.js:

"function filter() { [native code] }"

IE:

"
function filter() {
    [native code]
}
" 

etc.

alokmenghrajani commented 11 years ago

Good point about x-browser issues. I'll see what's going on with y.

alokmenghrajani commented 11 years ago

I'm such a n00b...

hazzik commented 11 years ago

Actually there is an issue with Internet Explorer (#17), and if we want to support it - your optimizations will gone:(

Also you could just replace +[] with 0 for consistency.

alokmenghrajani commented 11 years ago

:+1: about +[] vs 0. I'll wait for #17 to get fixed and see if I can still squeeze some bytes :)

hazzik commented 10 years ago

Probably can be closed