Debian Codegraph @

rhino/testsrc/tests/ecma/FunctionObjects/15.3.3.1-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 = '15.3.3.1-2.js';
7
8 /**
9 File Name: 15.3.3.1-2.js
10 ECMA Section: 15.3.3.1 Properties of the Function Constructor
11 Function.prototype
12
13 Description: The initial value of Function.prototype is the built-in
14 Function prototype object.
15
16 This property shall have the attributes [DontEnum |
17 DontDelete | ReadOnly]
18
19 This test the DontEnum property of Function.prototype.
20
21 Author: [email protected]
22 Date: 28 october 1997
23
24 */
25 var SECTION = "15.3.3.1-2";
26 var VERSION = "ECMA_1";
27 startTest();
28 var TITLE = "Function.prototype";
29
30 writeHeaderToLog( SECTION + " "+ TITLE);
31
32 new TestCase( SECTION,
33 "var str='';for (prop in Function ) str += prop; str;",
34 "",
35 eval("var str='';for (prop in Function) str += prop; str;")
36 );
37 test();