https://codereview.chromium.org/1225413005/diff/20001/src/scopes.cc
File src/scopes.cc (right):
https://codereview.chromium.org/1225413005/diff/20001/src/scopes.cc#newcode582
src/scopes.cc:582: // If the declaration scope is a (declaration) block
scope, also continue
On 2015/07/16 17:05:13, adamk wrote:
On 2015/07/16 14:26:40, rossberg wrote:
> On 2015/07/15 21:12:30, adamk wrote:
> > This weird duality of "declaration" scopes is beginning to worry
me. Do you
> have
> > reason to think there aren't more places that depend on there
being a single
> > declaration scope for a given scope?
>
> I admit this is hacky, but I'm not sure I fully understand your
question.
There
> should always be a single declaration scope. But in this particular
case, we
> also want to check that it doesn't overlap with the surrounding one.
What I meant was that functions now can have two declaration scopes,
where
previously they only had one.
Ah, I see. No, I don't think it matters anywhere else. The notion of
declaration scope is irrelevant for anything but placing var
declarations during parsing. And this
parameters-may-not-shadow-local-decls thing is an unnatural irregularity
in the spec that shouldn't exist in the first place (certainly not for
lexical bindings).
https://codereview.chromium.org/1225413005/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.