js/src/tests/test262/ch13/13.2/S13.2_A3.js

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:f78a4875e7bb
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /**
5 * When Function object(F) is constructed the length property of F is set to the number of formal properties specified in FormalParameterList
6 *
7 * @path ch13/13.2/S13.2_A3.js
8 * @description Creating functions with various FormalParameterList and checking their lengths
9 */
10
11 function __func(){};
12
13 //////////////////////////////////////////////////////////////////////////////
14 //CHECK#1
15 if (__func.length !== 0) {
16 $ERROR('#1: __func.length === 0. Actual: __func.length ==='+__func.length);
17 }
18 //
19 //////////////////////////////////////////////////////////////////////////////
20
21 function __gunc(a,b,c){};
22
23 //////////////////////////////////////////////////////////////////////////////
24 //CHECK#2
25 if (__gunc.length !== 3) {
26 $ERROR('#2: __gunc.length === 3. Actual: __gunc.length ==='+__gunc.length);
27 }
28 //
29 //////////////////////////////////////////////////////////////////////////////
30
31

mercurial