js/src/tests/test262/ch12/12.6/12.6.1/S12.6.1_A4_T2.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_T2.js
     8  * @description "break" and VariableDeclaration within a "do-while" statement
     9  */
    11 do_out : do {
    12     var __in__do__before__break="black";
    13     do_in : do {
    14         var __in__do__IN__before__break="hole";
    15         break do_in; 
    16         var __in__do__IN__after__break="sun";
    17     } while (0);
    18     var __in__do__after__break="won't you come";
    19 } while(2==1);
    21 //////////////////////////////////////////////////////////////////////////////
    22 //CHECK#1
    23 if (!(__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)) {
    24 	$ERROR('#1: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)===true. Actual:  (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)==='+ (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break) );
    25 }
    26 //
    27 //////////////////////////////////////////////////////////////////////////////

mercurial