|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* |
|
3 * Any copyright is dedicated to the Public Domain. |
|
4 * http://creativecommons.org/licenses/publicdomain/ |
|
5 * Contributor: Bob Clary |
|
6 */ |
|
7 |
|
8 |
|
9 //----------------------------------------------------------------------------- |
|
10 // SUMMARY: 10.1.8 Arguments Object length |
|
11 |
|
12 var BUGNUMBER = 162392; |
|
13 var summary = 'eval("arguments").length == 0 when no arguments specified'; |
|
14 var actual = noargslength(); |
|
15 var expect = 0; |
|
16 |
|
17 function noargslength() |
|
18 { |
|
19 enterFunc('noargslength'); |
|
20 return eval('arguments').length; |
|
21 exitFunc('noargslength'); |
|
22 } |
|
23 |
|
24 //----------------------------------------------------------------------------- |
|
25 test(); |
|
26 //----------------------------------------------------------------------------- |
|
27 |
|
28 function test() |
|
29 { |
|
30 enterFunc ('test'); |
|
31 printBugNumber(BUGNUMBER); |
|
32 printStatus (summary); |
|
33 |
|
34 reportCompare(expect, actual, summary); |
|
35 |
|
36 exitFunc ('test'); |
|
37 } |