test262/test/suite/bestPractice/Sbp_12.6.2_A13_T3.js
David Fugate d9e409ac1b https://bugs.ecmascript.org/show_bug.cgi?id=269
Extension clause permits function declarations more or less anywhere.
Moved four such negative test cases to best practices directory.
2012-02-24 14:28:50 -08:00

20 lines
447 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* FunctionDeclaration within a "while" Statement is not allowed
*
* @path bestPractice/Sbp_12.6.2_A13_T3.js
* @description Checking if declaring a function within a "while" Statement that is in a function body leads to an exception
* @negative
*/
function(){
while(0){
function __func(){};
};
};