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: * If the value of this last parameter (which has the same michael@0: * name as some previous parameters do) was not supplied by the michael@0: * caller, the value of the corresponding property is undefined michael@0: * michael@0: * @path ch10/10.2/10.2.1/S10.2.1_A3.js michael@0: * @description Creating functions with two or more formal parameters, michael@0: * that have the same name. Calling this function excluding a few last parameters michael@0: */ michael@0: michael@0: //CHECK#1 michael@0: function f1(x, a, b, x){ michael@0: return x; michael@0: } michael@0: if(!(f1(1, 2) === undefined)){ michael@0: $ERROR('#1: f1(1, 2) === undefined'); michael@0: } michael@0: