Yes, that is what I meant to say :) A "strict-mode" flag that defaults to true, and if it is false, ignore attempts to set strict mode when seeing "use strict".
I don't think it makes much sense to have an "always-strict-mode" flag. The expected behavior of code not written to be strict that is interpreted as strict, is to break. That won't make us much wiser. /L On Thu, Jan 13, 2011 at 17:34, William Hesse <[email protected]> wrote: > So, since flags can be true by default, rather than a --disable-strict-mode > flag, which is false by default, we should > just have a --strict-mode flag, which is true by default. Right? Would > there also be a --always-strict-mode flag? > > > > On Thu, Jan 13, 2011 at 11:32 AM, Mads Sig Ager <[email protected]> wrote: > >> Just to clearify. Having a flag to disable which is enabled by default is >> a bit confusing. ;) We want strict-mode support on by default! The flag can >> be used to test if pages break because of strict mode or something else. >> >> Thanks! -- Mads >> >> >> On Thu, Jan 13, 2011 at 11:29 AM, <[email protected]> wrote: >> >>> After some thought, we think it will be a good idea to have a flag that >>> can be >>> used to disable strict mode detection. >>> It should be enabled by default, but the flag will let us test whether >>> it's >>> strict-mode that makes something fail. >>> >>> It should be sufficient to check it only at the point where we set strict >>> mode >>> to true, and just do nothing - that would automatically make everything >>> non-strict. >>> >>> >>> http://codereview.chromium.org/6144005/ >>> >> >> -- >> v8-dev mailing list >> [email protected] >> http://groups.google.com/group/v8-dev >> > > > > -- > William Hesse > Software Engineer > [email protected] > > Google Denmark ApS > Frederiksborggade 20B, 1 sal > 1360 København K > Denmark > CVR nr. 28 86 69 84 > > If you received this communication by mistake, please don't forward it to > anyone else (it may contain confidential or privileged information), please > erase all copies of it, including all attachments, and please let the sender > know it went to the wrong person. Thanks. > > -- > v8-dev mailing list > [email protected] > http://groups.google.com/group/v8-dev -- Lasse R.H. Nielsen [email protected] 'Faith without judgement merely degrades the spirit divine' Google Denmark ApS - Frederiksborggade 20B, 1 sal - 1360 København K - Denmark - CVR nr. 28 86 69 84 -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
