blob: de31a66db8651f97f8bc673c266c3c0b136af98c [file] [log] [blame]
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: VariableDeclaration within "for" statement is allowed
es5id: 12.2_A7
description: Declaring variable within "for" statement
---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try{
infor_var = infor_var;
}catch(e){
throw new Test262Error('#1: Variable declaration inside "for" loop is admitted');
};
//
//////////////////////////////////////////////////////////////////////////////
for (;;){
break;
var infor_var;
}