https://codereview.chromium.org/671913002/diff/20001/src/preparser.cc
File src/preparser.cc (right):

https://codereview.chromium.org/671913002/diff/20001/src/preparser.cc#newcode466
src/preparser.cc:466: // require initializers for multiple consts.
Nit: upper case

https://codereview.chromium.org/671913002/diff/20001/test/mjsunit/regress/regress-2506.js
File test/mjsunit/regress/regress-2506.js (right):

https://codereview.chromium.org/671913002/diff/20001/test/mjsunit/regress/regress-2506.js#newcode9
test/mjsunit/regress/regress-2506.js:9: // Top-level code
Actually, on second though, we should have more tests. In particular,
test that

- fresh bindings are correctly created for each iteration of the loop
(using closures),

- assignment is properly rejected (in strict and sloppy mode).

These are probably not regression tests, but should extend the
respective tests we already have for 'for-let-in/of'.

https://codereview.chromium.org/671913002/

--
--
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.

Reply via email to