mirror of https://github.com/tc39/test262.git
22 lines
566 B
JavaScript
22 lines
566 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_A5_T2.js
|
||
|
* @description Declaring function within a "for-in" Statement that is
|
||
|
* within a function call
|
||
|
* @onlyStrict
|
||
|
* @negative SyntaxError
|
||
|
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
||
|
*/
|
||
|
|
||
|
"use strict";
|
||
|
(function(){
|
||
|
for (x in this) {
|
||
|
function __func(){};
|
||
|
}
|
||
|
})();
|
||
|
|