js/src/tests/ecma/GlobalObject/15.1-2-n.js

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

mercurial