As per our off-line discussion, I think it would be highly preferable to
make
the decision whether "let" is a proper keyword in the scanner. I think that
would simplify the parser, and be more scalable to the additional Harmony
keywords.
http://codereview.chromium.org/7616009/diff/1/test/mjsunit/harmony/block-scoping.js
File test/mjsunit/harmony/block-scoping.js (right):
http://codereview.chromium.org/7616009/diff/1/test/mjsunit/harmony/block-scoping.js#newcode58
test/mjsunit/harmony/block-scoping.js:58: // Lookup in and through block
contexts.
It would be great if you could add tests for variable shadowing (between
args, catch, and let, in various combinations).
http://codereview.chromium.org/7616009/
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev