Debian Codegraph @

rhino/testsrc/tests/ecma/FunctionObjects/15.3.3.1-3.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-3.js';
7
8 /**
9 File Name: 15.3.3.1-3.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 DontDelete property of Function.prototype.
20
21 Author: [email protected]
22 Date: 28 october 1997
23
24 */
25 var SECTION = "15.3.3.1-3";
26 var VERSION = "ECMA_1";
27 startTest();
28 var TITLE = "Function.prototype";
29
30 writeHeaderToLog( SECTION + " "+ TITLE);
31
32
33 var FUN_PROTO = Function.prototype;
34
35 new TestCase( SECTION,
36 "delete Function.prototype",
37 false,
38 delete Function.prototype
39 );
40
41 new TestCase( SECTION,
42 "delete Function.prototype; Function.prototype",
43 FUN_PROTO,
44 eval("delete Function.prototype; Function.prototype")
45 );
46 test();