Encoding simple IIFE seems to fail
Closed this issue · 2 comments
kylebakerio commented
when I try to encode (function(){return 1})()
, and copy and paste the output and run it in my console, that code returns 'undefined' instead of 1. (That said, if instead of return 1
I put alert(1)
, it does work.)
hazzik commented
You need to encode 'return (function(){return 1})()'
When you select 'eval' option, it is already IIF style function
On Tue, 15 Mar 2016 at 8:52 AM Kyle Baker notifications@github.com wrote:
when I try to encode (function(){return 1})(), and copy and paste the
output and run it in my console, that code returns 'undefined' instead of
- (That said, if instead of return 1 I put alert(1), it does work.)
—
Reply to this email directly or view it on GitHub
#49.