News for hackers. Stuff that matters.
Re:V8 has optimized new JavaScript language features (2018) by syrrim on Saturday November 07, 2020 @06:12PM (#25020689)
> There is no way to obscure the call to direct "eval" itself;

Jsfuck would like to have a word with you

Re:V8 has optimized new JavaScript language features (2018) by jlokier on Saturday November 07, 2020 @08:48PM (#25022008)
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!)

Re:V8 has optimized new JavaScript language features (2018) by ithkuil on Saturday November 07, 2020 @06:42PM (#25020980)
Does it actually behave like having a literal eval in the function?
Re:V8 has optimized new JavaScript language features (2018) by Mavvie on Saturday November 07, 2020 @06:38PM (#25020947)
Doesn't JSFuck only work when strict mode is off?