Debian Codegraph @

rhino/testsrc/tests/ecma/Math/15.8-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.8-2-n.js';
7
8 /**
9 File Name: 15.8-2.js
10 ECMA Section: 15.8 The Math Object
11
12 Description:
13
14 The Math object is merely a single object that has some named properties,
15 some of which are functions.
16
17 The value of the internal [[Prototype]] property of the Math object is the
18 Object prototype object (15.2.3.1).
19
20 The Math object does not have a [[Construct]] property; it is not possible
21 to use the Math object as a constructor with the new operator.
22
23 The Math object does not have a [[Call]] property; it is not possible to
24 invoke the Math object as a function.
25
26 Recall that, in this specification, the phrase "the number value for x" has
27 a technical meaning defined in section 8.5.
28
29 Author: [email protected]
30 Date: 12 november 1997
31
32 */
33
34 var SECTION = "15.8-2-n";
35 var VERSION = "ECMA_1";
36 startTest();
37 var TITLE = "The Math Object";
38
39 writeHeaderToLog( SECTION + " "+ TITLE);
40
41 DESCRIPTION = "MYMATH = new Math()";
42 EXPECTED = "error";
43
44 new TestCase( SECTION,
45 "MYMATH = new Math()",
46 "error",
47 eval("MYMATH = new Math()") );
48
49 test();