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 * While evaluating "do Statement while ( Expression )", Statement is evaluated first and only after it is done Expression is checked
6 *
7 * @path ch12/12.6/12.6.1/S12.6.1_A2.js
8 * @description Evaluating Statement with error Expression
9 */
11 try {
12 do __in__do = "reached"; while (abbracadabra);
13 $ERROR('#1: \'do __in__do = "reached"; while (abbracadabra)\' lead to throwing exception');
14 } catch (e) {
15 if (e instanceof Test262Error) throw e;
16 }
18 //////////////////////////////////////////////////////////////////////////////
19 //CHECK#1
20 if (__in__do !== "reached") {
21 $ERROR('#1.1: __in__do === "reached". Actual: __in__do ==='+ __in__do );
22 }
23 //
24 //////////////////////////////////////////////////////////////////////////////