ES3.1 Draft: 11 June 2008 version available
Maciej Stachowiak
mjs at apple.com
Sat Jun 14 22:49:48 PDT 2008
On Jun 14, 2008, at 12:21 PM, Mark S. Miller wrote:
> On Fri, Jun 13, 2008 at 2:44 PM, Mark Miller <erights at gmail.com>
> wrote:
>> On Fri, Jun 13, 2008 at 11:20 AM, Lars Hansen <lhansen at adobe.com>
>> wrote:
>>>> What
>>>> other "with" do people imagine is compatible with strict
>>>> mode? I must have missed something.
>>>
>>> The one in ES3. What makes it not compatible with strict mode?
>>
>> Doesn't it make static scope analysis impossible?
>
> Deleting a variable also makes static scope analysis impossible.
> (Deleting a property is fine.)
Deleting a variable is only possible for variables introduced by eval,
and I gather eval will not be able to inject bindings into local scope
in strict mode.
> Once try/catch is fixed, I can't think of anything else that prevents
> static scope analysis of ES3.1 strict or ES4 strict. Does anyone know
> of any other cases?
Named function expressions have the same kind of problem as try/catch
(assuming the problem is a random non-activation object being on the
scope chain).
Regards,
Maciej
More information about the Es4-discuss
mailing list