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 * 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 //////////////////////////////////////////////////////////////////////////////