Debian Codegraph @

rhino/testsrc/tests/ecma/ExecutionContexts/10.1.3-2.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 gTestfile = '10.1.3-2.js';
7
8 /**
9 File Name: 10.1.3-1.js
10 ECMA Section: 10.1.3
11 Description:
12
13 Author: [email protected]
14 Date: 27 July 2005
15 */
16
17 var SECTION = "10.1.3-2";
18 var VERSION = "ECMA_1";
19 var TITLE = "Variable Instantiation: Function Declarations";
20 var BUGNUMBER="299639";
21 startTest();
22
23 writeHeaderToLog( SECTION + " "+ TITLE);
24
25 function f(g)
26 {
27 function g() {
28 return "g";
29 };
30 return g;
31 }
32
33 new TestCase(
34 SECTION,
35 "typeof f(\"parameter\")",
36 "function",
37 typeof f("parameter") );
38
39 test();
40