@getify @BrendanEich @RReverser Would you accept (template`look ma a ${str}ing`)("str") -> "look ma a string" ?
@getify strict mode *indirect eval* has no access to the lexical scope at all. Otherwise any function could unwittingly have an eval.
-
-
@wycats i'm not talking about *indirect* eval. i'm talking about strict direct eval, but w/ even more restrictionspic.twitter.com/y8GuHUzZxf
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats presumably, that "use strict"; eval("`" + str + "`") is far restricted compared to eval(str)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats even "use strict"; eval(" `${ some malicious code }` ") is more restricted than: eval(" some malicious code ")Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats namely that it cannot create declarations that modify the existing lexical scopeThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.