Reviewers: arv, rossberg,

Description:
Fix desugaring of let bindings in for loops to handle continue properly

This requires putting the original loop's body inside an inner for loop (with the same labels as the original loop) and re-binding the temp variables in its "next" expression. A second flag is added to the desugared code to ensure the
loop body executes at most once per loop.

BUG=v8:3683
LOG=y

Please review this at https://codereview.chromium.org/720863002/

Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+163, -59 lines):
  M src/parser.cc
  A test/mjsunit/harmony/regress/regress-3683.js


--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to