aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch12/12.5/S12.5_A9_T3.js
blob: c2cce81cdb391af5e4599d8d67b5c3b850f9a580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * Function declaration within an "if" statement is not allowed
 *
 * @path ch12/12.5/S12.5_A9_T3.js
 * @description Declaring function within an "if" statement that is declared within the function declaration
 * @negative
 */

function(){

if (true) {
    function __func(){};
} else {
    function __func(){};
}

};