Created
May 28, 2013 21:27
-
-
Save minitech/5666294 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function a() { | |
/* (function(package) { | |
* (function(a) { | |
* "use strict"; | |
* var a\u005f = package; | |
* with(a_) | |
* this && a(); | |
* })(a); | |
* })(); | |
*/ | |
var code = ""; | |
var match; | |
var re = /[ /]\* (.+)$/gm; | |
while(match = re.exec(a)) { | |
code += match[1]; | |
} | |
try { | |
var package = {a: a}; | |
eval(code); | |
} catch(ex) { | |
console.log(/SyntaxError: (.+)/.exec(ex.stack)[1]); | |
return; | |
} finally { | |
console.log(";-)"); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/brian-hannay/5733214
Another what does it do... Interesting how you parse the function as a string :P