Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
4 function foo()
5 {
6 assertEq(foo.arguments.length, 0);
7 assertEq(foo.caller, null);
8 }
10 assertEq(foo.arguments, null);
11 assertEq(foo.caller, null);
12 foo();
13 assertEq(foo.arguments, null);
14 assertEq(foo.caller, null);
16 /******************************************************************************/
18 if (typeof reportCompare === "function")
19 reportCompare(true, true);
21 print("Tests complete");