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: * "var" statement within "for" statement is allowed michael@0: * michael@0: * @path ch12/12.2/S12.2_A10.js michael@0: * @description Declaring variable within a "for" IterationStatement michael@0: */ michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: try { michael@0: __ind=__ind; michael@0: } catch (e) { michael@0: $ERROR('#1: var inside "for" is admitted '+e.message); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: for (var __ind;;){ michael@0: break; michael@0: } michael@0: