diff options
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A3_T1.js')
-rw-r--r-- | external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A3_T1.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A3_T1.js b/external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A3_T1.js new file mode 100644 index 000000000..980cf8395 --- /dev/null +++ b/external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A3_T1.js @@ -0,0 +1,17 @@ +// 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 function within a "do-while" loop + * @negative SyntaxError + * @onlyStrict + * @bestPractice + * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls +*/
+"use strict"; +do { + function __func(){}; +} while(0); |