Hm, I'm not sure I understand the change. The only place where a variable is
actually recognised as declared seems to be in ParseVariableDeclaration. But
there are various other constructs in JS that bind variables, e.g., function
declarations, parameter lists, catch, for, etc.
https://codereview.chromium.org/641283003/diff/20001/src/preparser.cc
File src/preparser.cc (right):
https://codereview.chromium.org/641283003/diff/20001/src/preparser.cc#newcode57
src/preparser.cc:57: DeclarationScope()->Declare(identifier);
Why Declare here?
https://codereview.chromium.org/641283003/
--
--
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.