S12.2_A10.js (627B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: "\"var\" statement within \"for\" statement is allowed" 6 es5id: 12.2_A10 7 description: Declaring variable within a "for" IterationStatement 8 ---*/ 9 10 ////////////////////////////////////////////////////////////////////////////// 11 //CHECK#1 12 try { 13 __ind=__ind; 14 } catch (e) { 15 throw new Test262Error('#1: var inside "for" is admitted '+e.message); 16 } 17 // 18 ////////////////////////////////////////////////////////////////////////////// 19 20 for (var __ind;;){ 21 break; 22 } 23 24 reportCompare(0, 0);