blob: 9585322ef09717f0b2bc1a05cc83062a43a4a768 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/
function foo()
{
assertEq(foo.arguments.length, 0);
assertEq(foo.caller, null);
}
assertEq(foo.arguments, null);
assertEq(foo.caller, null);
foo();
assertEq(foo.arguments, null);
assertEq(foo.caller, null);
/******************************************************************************/
if (typeof reportCompare === "function")
reportCompare(true, true);
print("Tests complete");
|