> -----Original Message-----
> From: [email protected] [mailto:es-discuss-
> [email protected]] On Behalf Of Mark S. Miller
> Sent: Thursday, May 31, 2012 22:24


> Non-strict mode is so bizzarre that I wouldn't be surprised, but I can't
> think of an example. Is my proposed rule unsound as stated, since it
> doesn't distinguish strict and non-strict functions? Is there some way
> for a non-strict function that doesn't mention "this" and does not
> contain a direct eval operator to nevertheless be this-sensitive?

I can't quite find the answer: would setTimeout/setInterval/setImmediate have 
the capabilities necessary? I would assume they all behave as indirect eval, 
but since they are outside the language spec, it seems possibly 
implementation-dependent.

Other candidates are window.execScript in IE or vm.runInNewContext in Node, but 
I think both of those are explicitly global scoped, and thus could not 
reference this. Nevertheless, the idea of implementations providing specific 
methods with the same abilities as direct eval seems possible.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to