Debian Codegraph @

rhino/testsrc/tests/ecma/GlobalObject/15.1-2-n.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.1-2-n.js';
7
8 /**
9 File Name: 15.1-2-n.js
10 ECMA Section: The global object
11 Description:
12
13 The global object does not have a [[Call]] property; it is not possible
14 to invoke the global object as a function.
15
16 Author: [email protected]
17 Date: 12 november 1997
18 */
19
20 var SECTION = "15.1-2-n";
21 var VERSION = "ECMA_1";
22 startTest();
23 var TITLE = "The Global Object";
24
25 writeHeaderToLog( SECTION + " "+ TITLE);
26
27 DESCRIPTION = "var MY_GLOBAL = this()";
28 EXPECTED = "error";
29
30 new TestCase( SECTION,
31 "var MY_GLOBAL = this()",
32 "error",
33 eval("var MY_GLOBAL = this()") );
34 test();