ecmascript 5 and the script tag

Mark S. Miller erights at
Mon Apr 20 13:24:53 PDT 2009

On Mon, Apr 20, 2009 at 1:03 PM, Allen Wirfs-Brock
<Allen.Wirfs-Brock at> wrote:
> [...] There are a number of coding idioms that could be used to dynamically determine whether or not code is operating in strict mode. I guess the question really is whether those idioms are adequate for the above eval based scenario.

  if (function(){return this;}()) {
    // non-strict case
  } else {
    // strict case


More information about the es-discuss mailing list