Debian Codegraph @

rhino/testsrc/tests/ecma_3/ExecutionContexts/regress-23346.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 var gTestfile = 'regress-23346.js';
8
9 var CALL_CALLED = "PASSED";
10
11 test();
12
13 function f(x)
14 {
15 if (x)
16 return call();
17
18 return "FAILED!";
19 }
20
21 function call()
22 {
23 return CALL_CALLED;
24 }
25
26 function test()
27 {
28 enterFunc ("test");
29
30 printStatus ("ECMA Section: 10.1.3: Variable Instantiation.");
31 printBugNumber (23346);
32
33 reportCompare ("PASSED", f(true),
34 "Unqualified reference should not see Function.prototype");
35
36 exitFunc("test");
37 }