Hacker News new | ask | show | jobs
by syrrim 2056 days ago
> There is no way to obscure the call to direct "eval" itself;

Jsfuck would like to have a word with you

3 comments

Nice try! The Jsfuck method can't encode a direct "eval", only an indirect one :-)

Thus the emphasis on direct. Well, Jsfuck can encode a direct eval inside an indirect eval, but that doesn't give it any advantages, it still can't access the surrounding lexical environment in the form of "let" and "const" variables.

(I didn't know about Jsfuck though - it looks fun, thanks!)

Does it actually behave like having a literal eval in the function?
Doesn't JSFuck only work when strict mode is off?