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: * VariableDeclaration within "do-while" loop is allowed michael@0: * michael@0: * @path ch12/12.2/S12.2_A12.js michael@0: * @description Declaring variable within "do-while" statement michael@0: */ michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: try { michael@0: x=x; michael@0: } catch (e) { michael@0: $ERROR('#1: Declaration variable inside "do-while" statement is admitted'); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: do var x; while (false); michael@0: