[Webkit-unassigned] [Bug 17932] "ASSERTION FAILED: type != Continue" with do/while and try/finally

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 18 22:20:08 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=17932





------- Comment #3 from mrowe at apple.com  2008-03-18 22:20 PDT -------
Yup, the following code behaves differently in JSCore vs SpiderMonkey:

do {
  try {
    print('continuing outer loop');
    continue;
  } finally {
    innerLoop:
    while (1) {
      print('breaking out of innerLoop');
      break innerLoop;
    }
  }
} while (1);

JSCore prints:
continuing outer loop
breaking out of innerLoop

and then exits.  SpiderMonkey prints:
continuing outer loop
breaking out of innerLoop
continuing outer loop
breaking out of innerLoop
continuing outer loop
breaking out of innerLoop
[.. and so on ..]


When the outer DoWhileNode checks exec->breakOrContinueTarget(), the target is
still set to "innerLoop" from the break statement within the "finally" block.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list