| 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-1.js'; |
| 7 | |
| 8 | /** |
| 9 | File Name: 15.8-1.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-1"; |
| 35 | var VERSION = "ECMA_2"; |
| 36 | startTest(); |
| 37 | var TITLE = "The Math Object"; |
| 38 | |
| 39 | writeHeaderToLog( SECTION + " "+ TITLE); |
| 40 | |
| 41 | new TestCase( SECTION, |
| 42 | "Math.__proto__ == Object.prototype", |
| 43 | true, |
| 44 | Math.__proto__ == Object.prototype ); |
| 45 | |
| 46 | new TestCase( SECTION, |
| 47 | "Math.__proto__", |
| 48 | Object.prototype, |
| 49 | Math.__proto__ ); |
| 50 | |
| 51 | test(); |