Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 */
9 //-----------------------------------------------------------------------------
10 // SUMMARY: 10.1.8 Arguments Object length
12 var BUGNUMBER = 162392;
13 var summary = 'eval("arguments").length == 0 when no arguments specified';
14 var actual = noargslength();
15 var expect = 0;
17 function noargslength()
18 {
19 enterFunc('noargslength');
20 return eval('arguments').length;
21 exitFunc('noargslength');
22 }
24 //-----------------------------------------------------------------------------
25 test();
26 //-----------------------------------------------------------------------------
28 function test()
29 {
30 enterFunc ('test');
31 printBugNumber(BUGNUMBER);
32 printStatus (summary);
34 reportCompare(expect, actual, summary);
36 exitFunc ('test');
37 }