Debian Codegraph @

js/src/tests/test262/language/statements/do-while/S12.6.1_A3.js

raw
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 info: |
6 When the production "do Statement while ( Expression )" is evaluated,
7 then (normal, V, empty) is returned
8 es5id: 12.6.1_A3
9 description: Using eval "eval("do __in__do=1; while (false)")"
10 ---*/
11
12 var __evaluated, __in__do;
13
14 __evaluated = eval("do __in__do=1; while (false)");
15
16 //////////////////////////////////////////////////////////////////////////////
17 //CHECK#
18 if (__in__do !== 1) {
19 throw new Test262Error('#1: __in__do === 1. Actual: __in__do ==='+ __in__do );
20 }
21 //
22 //////////////////////////////////////////////////////////////////////////////
23
24 //////////////////////////////////////////////////////////////////////////////
25 //CHECK#2
26 if (__evaluated !== 1) {
27 throw new Test262Error('#2: __evaluated === 1. Actual: __evaluated ==='+ __evaluated );
28 }
29 //
30 //////////////////////////////////////////////////////////////////////////////
31
32 reportCompare(0, 0);