mirror of
https://github.com/tc39/test262.git
synced 2025-08-27 12:58:24 +02:00
Extension clause permits function declarations more or less anywhere. Moved four such negative test cases to best practices directory.
20 lines
428 B
JavaScript
20 lines
428 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 "for-in" Statement is not allowed
|
|
*
|
|
* @path bestPractice/Sbp_12.6.4_A13_T3.js
|
|
* @description Declaring function within a "for-in" Statement that is within function declaration
|
|
* @negative
|
|
*/
|
|
|
|
function(){
|
|
|
|
for(x in this){
|
|
function __func(){};
|
|
};
|
|
|
|
};
|
|
|