|
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 |