Status: Accepted
Owner: [email protected]
CC: [email protected], [email protected], [email protected], [email protected]
Labels: Type-Bug Priority-Critical Harmony

New issue 3683 by [email protected]: C-style for-let can't handle continue
https://code.google.com/p/v8/issues/detail?id=3683

Consider:

  for (let x = 0; x < 10; ) {
    ++x
    continue
  }

  // or:

  l: for (let x = 0; x < 10; ) {
    while (true) {
      ++x
      continue l
    }
  }

Both these loops should terminate, but currently diverge. The desugaring of for-let loops in the parser copies back the shadow variable at the end of the loop body, but that statement is bypassed by continue.

Adam, can you have a look? Unfortunately, it is not obvious how to tweak our desugaring to fix this issue.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

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