summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A1_T1.js
blob: be589ead308a72742ae4137bff8af4fba974dfbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * The production Block { } in strict code can't contain function
 * declaration;
 *
 * @description: Trying to declare function at the Block statement;
 * @negative SyntaxError
 * @onlyStrict
 * @bestPractice
 * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
 */
"use strict";
{
    function __func(){}
}