michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: michael@0: /** michael@0: File Name: 15.3.5.3.js michael@0: ECMA Section: Function.arguments michael@0: Description: michael@0: michael@0: The value of the arguments property is normally null if there is no michael@0: outstanding invocation of the function in progress (that is, the michael@0: function has been called but has not yet returned). When a non-internal michael@0: Function object (15.3.2.1) is invoked, its arguments property is michael@0: "dynamically bound" to a newly created object that contains the arguments michael@0: on which it was invoked (see 10.1.6 and 10.1.8). Note that the use of this michael@0: property is discouraged; it is provided principally for compatibility michael@0: with existing old code. michael@0: michael@0: See sections 10.1.6 and 10.1.8 for more extensive tests. michael@0: michael@0: Author: christine@netscape.com michael@0: Date: 12 november 1997 michael@0: */ michael@0: michael@0: var SECTION = "15.3.5.3"; michael@0: var VERSION = "ECMA_1"; michael@0: startTest(); michael@0: var TITLE = "Function.arguments"; michael@0: michael@0: writeHeaderToLog( SECTION + " "+ TITLE); michael@0: michael@0: var MYFUNCTION = new Function( "return this.arguments" ); michael@0: michael@0: new TestCase( SECTION, "var MYFUNCTION = new Function( 'return this.arguments' ); MYFUNCTION.arguments", null, MYFUNCTION.arguments ); michael@0: michael@0: test();