aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch12/12.6/12.6.2/S12.6.2_A13_T3.js
blob: 2947810372119f2df7ecb273f75173f8873126ca (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 "while" Statement is not allowed
 *
 * @path ch12/12.6/12.6.2/S12.6.2_A13_T3.js
 * @description Checking if declaring a function within a "while" Statement that is in a function body leads to an exception
 * @negative
 */

function(){

while(0){
    function __func(){};
};

};