Debian Codegraph @

js/src/tests/test262/language/statements/do-while/S12.6.1_A11.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: Block "{}" in a "do-while" Expression is evaluated to true
6 es5id: 12.6.1_A11
7 description: Checking if execution of "do {} while({})" passes
8 ---*/
9
10 do {
11 var __in__do=1;
12 if(__in__do)break;
13 } while({});
14
15 //////////////////////////////////////////////////////////////////////////////
16 //CHECK#1
17 if (__in__do !== 1) {
18 throw new Test262Error('#1: "{}" in do-while expression evaluates to true');
19 }
20 //
21 //////////////////////////////////////////////////////////////////////////////
22
23 reportCompare(0, 0);