Debian Codegraph @

rhino/testsrc/tests/js1_2/function/nesting-1.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 = 'nesting-1.js';
7
8 /**
9 File Name: nesting-1.js
10 Reference: http://scopus.mcom.com/bugsplat/show_bug.cgi?id=122040
11 Description: Regression test for a nested function
12
13 Author: [email protected]
14 Date: 15 June 1998
15 */
16
17 var SECTION = "function/nesting-1.js";
18 var VERSION = "JS_12";
19 startTest();
20 var TITLE = "Regression test for 122040";
21
22 writeHeaderToLog( SECTION + " "+ TITLE);
23
24 function f(a) {function g(b) {return a+b;}; return g;}; f(7);
25
26 new TestCase( SECTION,
27 'function f(a) {function g(b) {return a+b;}; return g;}; typeof f(7)',
28 "function",
29 typeof f(7) );
30
31 test();
32