| 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-3-n.js'; |
| 7 | |
| 8 | /** |
| 9 | File Name: 15.8-3.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 | var SECTION = "15.8-3-n"; |
| 34 | var VERSION = "ECMA_1"; |
| 35 | startTest(); |
| 36 | var TITLE = "The Math Object"; |
| 37 | |
| 38 | writeHeaderToLog( SECTION + " "+ TITLE); |
| 39 | |
| 40 | DESCRIPTION = "MYMATH = Math()"; |
| 41 | EXPECTED = "error"; |
| 42 | |
| 43 | new TestCase( SECTION, |
| 44 | "MYMATH = Math()", |
| 45 | "error", |
| 46 | eval("MYMATH = Math()") ); |
| 47 | |
| 48 | test(); |