<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>17247</bug_id>
          
          <creation_ts>2008-02-08 15:03:07 -0800</creation_ts>
          <short_desc>Labelled continue/break can fail in some cases</short_desc>
          <delta_ts>2008-02-08 17:14:14 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oliver Hunt">oliver</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>darin</cc>
    
    <cc>ggaren</cc>
    
    <cc>mjs</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69862</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-02-08 15:03:07 -0800</bug_when>
    <thetext>JSC does not handle a continue or break to a label when there are multiple labels at that scope, eg.
	a: 
	b:
	for (var foo = 1; foo &lt; 10; foo++) {
	   if (foo == 4)
		   continue a;
	   print(&quot;foo: &quot;+foo);
	}
execution ends up terminating at foo: 3, rather than continuing to to foo: 9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69863</commentid>
    <comment_count>1</comment_count>
      <attachid>19009</attachid>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-02-08 15:06:19 -0800</bug_when>
    <thetext>Created attachment 19009
Testcase

Uses setTimeout to trigger the script running as otherwise firefox does not run it for some reason</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69873</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-02-08 15:53:10 -0800</bug_when>
    <thetext>&lt;rdar://problem/5733160&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69878</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-02-08 17:14:14 -0800</bug_when>
    <thetext>Committed revision 30103.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>19009</attachid>
            <date>2008-02-08 15:06:19 -0800</date>
            <delta_ts>2008-02-08 15:06:19 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>continue-break-testcase.html</filename>
            <type>text/html</type>
            <size>395</size>
            <attacher name="Oliver Hunt">oliver</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KZnVuY3Rpb24gcHJpbnQobXNnKSB7CmRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJs
b2ciKS5pbm5lckhUTUwrPW1zZysiPGJyLz4iOwp9CmZ1bmN0aW9uIHRlc3QoKSB7CglhOiAKCWI6
Cglmb3IgKHZhciBmb28gPSAxOyBmb28gPCAxMDsgZm9vKyspIHsKCSAgIGlmIChmb28gPT0gNCkK
CQkgICBjb250aW51ZSBhOwoJICAgcHJpbnQoImZvbzogIitmb28pOwoJfQoJYzogCglkOgoJZm9y
ICh2YXIgYmFyID0gMTsgYmFyIDwgMTA7IGJhcisrKSB7CgkgICBpZiAoYmFyID09IDQpCgkJICAg
YnJlYWsgYzsKCSAgIHByaW50KCJmb286ICIrYmFyKTsKCX0KfQo8L3NjcmlwdD4KPGRpdiBpZD0i
bG9nIj48L2Rpdj4KPHNjcmlwdD4gc2V0VGltZW91dCh0ZXN0LDEwKTsgPC9zY3JpcHQ+Cgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>