michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Arguments : () michael@0: * michael@0: * @path ch11/11.2/11.2.4/S11.2.4_A1.1_T2.js michael@0: * @description Function is declared with FormalParameterList michael@0: */ michael@0: michael@0: function f_arg(x,y) { michael@0: return arguments; michael@0: } michael@0: michael@0: //CHECK#1 michael@0: if (f_arg().length !== 0) { michael@0: $ERROR('#1: function f_arg(x,y) {return arguments;} f_arg().length === 0. Actual: ' + (f_arg().length)); michael@0: } michael@0: michael@0: //CHECK#2 michael@0: if (f_arg()[0] !== undefined) { michael@0: $ERROR('#2: function f_arg(x,y) {return arguments;} f_arg()[0] === undefined. Actual: ' + (f_arg()[0])); michael@0: } michael@0: michael@0: //CHECK#3 michael@0: if (f_arg.length !== 2) { michael@0: $ERROR('#3: function f_arg(x,y) {return arguments;} f_arg.length === 2. Actual: ' + (f_arg.length)); michael@0: } michael@0: