1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/ecma/Math/15.8-3-n.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 + 1.10 +/** 1.11 + File Name: 15.8-3.js 1.12 + ECMA Section: 15.8 The Math Object 1.13 + 1.14 + Description: 1.15 + 1.16 + The Math object is merely a single object that has some named properties, 1.17 + some of which are functions. 1.18 + 1.19 + The value of the internal [[Prototype]] property of the Math object is the 1.20 + Object prototype object (15.2.3.1). 1.21 + 1.22 + The Math object does not have a [[Construct]] property; it is not possible 1.23 + to use the Math object as a constructor with the new operator. 1.24 + 1.25 + The Math object does not have a [[Call]] property; it is not possible to 1.26 + invoke the Math object as a function. 1.27 + 1.28 + Recall that, in this specification, the phrase "the number value for x" has 1.29 + a technical meaning defined in section 8.5. 1.30 + 1.31 + Author: christine@netscape.com 1.32 + Date: 12 november 1997 1.33 + 1.34 +*/ 1.35 +var SECTION = "15.8-3-n"; 1.36 +var VERSION = "ECMA_1"; 1.37 +startTest(); 1.38 +var TITLE = "The Math Object"; 1.39 + 1.40 +writeHeaderToLog( SECTION + " "+ TITLE); 1.41 + 1.42 +DESCRIPTION = "MYMATH = Math()"; 1.43 +EXPECTED = "error"; 1.44 + 1.45 +new TestCase( SECTION, 1.46 + "MYMATH = Math()", 1.47 + "error", 1.48 + eval("MYMATH = Math()") ); 1.49 + 1.50 +test();