michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * "do-while" Statement is evaluated without syntax checks michael@0: * michael@0: * @path ch12/12.6/12.6.1/S12.6.1_A9.js michael@0: * @description Throwing system exception whithin a "do-while" loop michael@0: */ michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: try { michael@0: do { michael@0: var x = 1; michael@0: abaracadabara; michael@0: } while(0); michael@0: $ERROR('#1: "abbracadabra" lead to throwing exception'); michael@0: michael@0: } catch (e) { michael@0: if (e instanceof Test262Error) throw e; michael@0: } michael@0: michael@0: if (x !== 1) { michael@0: $ERROR('#1.1: x === 1. Actual: x ==='+ x ); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: