1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/ecma/FunctionObjects/15.3.5.3.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 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.3.5.3.js 1.12 + ECMA Section: Function.arguments 1.13 + Description: 1.14 + 1.15 + The value of the arguments property is normally null if there is no 1.16 + outstanding invocation of the function in progress (that is, the 1.17 + function has been called but has not yet returned). When a non-internal 1.18 + Function object (15.3.2.1) is invoked, its arguments property is 1.19 + "dynamically bound" to a newly created object that contains the arguments 1.20 + on which it was invoked (see 10.1.6 and 10.1.8). Note that the use of this 1.21 + property is discouraged; it is provided principally for compatibility 1.22 + with existing old code. 1.23 + 1.24 + See sections 10.1.6 and 10.1.8 for more extensive tests. 1.25 + 1.26 + Author: christine@netscape.com 1.27 + Date: 12 november 1997 1.28 +*/ 1.29 + 1.30 +var SECTION = "15.3.5.3"; 1.31 +var VERSION = "ECMA_1"; 1.32 +startTest(); 1.33 +var TITLE = "Function.arguments"; 1.34 + 1.35 +writeHeaderToLog( SECTION + " "+ TITLE); 1.36 + 1.37 +var MYFUNCTION = new Function( "return this.arguments" ); 1.38 + 1.39 +new TestCase( SECTION, "var MYFUNCTION = new Function( 'return this.arguments' ); MYFUNCTION.arguments", null, MYFUNCTION.arguments ); 1.40 + 1.41 +test();