blob: 8d5f11ea26127cfe023064a05ae186b85cacf7d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* FunctionDeclaration within a "do-while" Block in strict code is not allowed
*
* @description Declaring a function within a "do-while" loop that is
* within a strict function
* @negative SyntaxError
* @onlyStrict
* @bestPractice
* http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
*/
"use strict";
(function(){
do {
function __func(){};
} while(0);
});
|