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

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:8a096f1c9714
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /**
5 * When the production "do Statement while ( Expression )" is evaluated, then (normal, V, empty) is returned
6 *
7 * @path ch12/12.6/12.6.1/S12.6.1_A3.js
8 * @description Using eval "eval("do __in__do=1; while (false)")"
9 */
10
11 __evaluated = eval("do __in__do=1; while (false)");
12
13 //////////////////////////////////////////////////////////////////////////////
14 //CHECK#
15 if (__in__do !== 1) {
16 $ERROR('#1: __in__do === 1. Actual: __in__do ==='+ __in__do );
17 }
18 //
19 //////////////////////////////////////////////////////////////////////////////
20
21 //////////////////////////////////////////////////////////////////////////////
22 //CHECK#2
23 if (__evaluated !== 1) {
24 $ERROR('#2: __evaluated === 1. Actual: __evaluated ==='+ __evaluated );
25 }
26 //
27 //////////////////////////////////////////////////////////////////////////////
28

mercurial