• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2009 the Sputnik authors.  All rights reserved.
2// This code is governed by the BSD license found in the LICENSE file.
3
4/**
5 * The production Block { } in strict code can't contain function
6 * declaration;
7 *
8 * @path bestPractice/Sbp_A1_T1.js
9 * @description Trying to declare function at the Block statement
10 * @onlyStrict
11 * @negative SyntaxError
12 * @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
13 */
14
15"use strict";
16{
17    function __func(){}
18}
19
20