Wed, 31 Dec 2014 13:27:57 +0100
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 "while" Statement is allowed and performed as described in 12.8
6 *
7 * @path ch12/12.6/12.6.2/S12.6.2_A4_T2.js
8 * @description "break" and VariableDeclaration within a "while" Statement
9 */
11 do_out : while(1===1) {
12 if (__in__do__before__break) break;
13 var __in__do__before__break="black";
14 do_in : while (1) {
15 var __in__do__IN__before__break="hole";
16 break do_in;
17 var __in__do__IN__after__break="sun";
18 } ;
19 var __in__do__after__break="won't you come";
20 };
22 //////////////////////////////////////////////////////////////////////////////
23 //CHECK#1
24 if (!(__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)) {
25 $ERROR('#1: Break inside do-while is allowed as its described at standard');
26 }
27 //
28 //////////////////////////////////////////////////////////////////////////////