Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 * When the production "do Statement while ( Expression )" is evaluated, Statement is evaluated first
6 *
7 * @path ch12/12.6/12.6.1/S12.6.1_A1.js
8 * @description Evaluating various Expressions
9 */
11 var __in__do;
13 do __in__do=1; while ( false );
15 //////////////////////////////////////////////////////////////////////////////
16 //CHECK#1
17 if (__in__do!==1) {
18 $ERROR('#1: false evaluates to false');
19 }
20 //
21 //////////////////////////////////////////////////////////////////////////////
23 do __in__do=2; while ( 0 );
25 //////////////////////////////////////////////////////////////////////////////
26 //CHECK#2
27 if (__in__do!==2) {
28 $ERROR('#2: 0 evaluates to false');
29 }
30 //
31 //////////////////////////////////////////////////////////////////////////////
33 do __in__do=3; while ( "" );
35 //////////////////////////////////////////////////////////////////////////////
36 //CHECK#3
37 if (__in__do!==3) {
38 $ERROR('#3: "" evaluates to false');
39 }
40 //
41 //////////////////////////////////////////////////////////////////////////////