S12.6.4_A15.js (591B)
1 // |reftest| error:SyntaxError 2 // Copyright 2009 the Sputnik authors. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 info: Block within a "for-in" Expression is not allowed 7 es5id: 12.6.4_A15 8 description: Using block within "for-in" Expression 9 negative: 10 phase: parse 11 type: SyntaxError 12 ---*/ 13 14 $DONOTEVALUATE(); 15 16 var __arr=[1,2,3]; 17 18 ////////////////////////////////////////////////////////////////////////////// 19 //CHECK# 20 for(x in {__arr;}){ 21 break ; 22 }; 23 // 24 //////////////////////////////////////////////////////////////////////////////