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

window.location when converted only shows undefined #41

Closed c0debreaker closed 9 years ago

c0debreaker commented 9 years ago

any reasons why window.location when converted by fuckjs does not work? The output is undefined

hazzik commented 9 years ago

Because it encodes as Function() { window.location } which does not return from function. So, you can encode (using jsfuck.com) retrun window.location or just return location

c0debreaker commented 9 years ago

Thanks!