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: * When Function object(F) is constructed the length property of F is set to the number of formal properties specified in FormalParameterList michael@0: * michael@0: * @path ch13/13.2/S13.2_A3.js michael@0: * @description Creating functions with various FormalParameterList and checking their lengths michael@0: */ michael@0: michael@0: function __func(){}; michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: if (__func.length !== 0) { michael@0: $ERROR('#1: __func.length === 0. Actual: __func.length ==='+__func.length); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: function __gunc(a,b,c){}; michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#2 michael@0: if (__gunc.length !== 3) { michael@0: $ERROR('#2: __gunc.length === 3. Actual: __gunc.length ==='+__gunc.length); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: