js/src/tests/test262/ch12/12.6/12.6.1/S12.6.1_A4_T5.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * "break" within a "do-while" Statement is allowed and performed as described in 12.8
     6  *
     7  * @path ch12/12.6/12.6.1/S12.6.1_A4_T5.js
     8  * @description Using labeled "break" in order to continue a loop
     9  */
    11 //CHECK#1
    12 var i=0;
    13 woohoo:{
    14   do{
    15     i++;
    16     if ( ! (i < 10) ) {
    17       break woohoo;
    18       $ERROR('#1.1: "break woohoo" must break loop');
    19     }
    20   } while ( true );
    21   if (i!==10) $ERROR('#1.2: i===10. Actual:  i==='+ i );
    22 }

mercurial