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 caller supplies fewer parameter values than there are michael@0: * formal parameters, the extra formal parameters have value undefined michael@0: * michael@0: * @path ch10/10.2/10.2.1/S10.2.1_A1.js michael@0: * @description Calling function excluding a few parameters michael@0: */ michael@0: michael@0: //CHECK#1 michael@0: function f1(a, b){ michael@0: return (b === undefined); michael@0: } michael@0: if(!(f1(1, 2) === false)){ michael@0: $ERROR('#1: f1(1, 2) === false'); michael@0: } else if(!(f1(1) === true)){ michael@0: $ERROR('#1: f1(1) === true'); michael@0: } michael@0: michael@0: //CHECK#2 michael@0: function f2(a, b, c){ michael@0: return (b === undefined) && (c === undefined); michael@0: } michael@0: if(!(f2(1) === true)){ michael@0: $ERROR('#2: f2(1, 2) === true'); michael@0: } michael@0: