1 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
4 //-----------------------------------------------------------------------------
5 var BUGNUMBER = 588251;
7 "fun.caller should throw if that value corresponds to a strict mode " +
10 print(BUGNUMBER + ": " + summary);
16 function nonstrict() { return nonstrict.caller; }
17 function strict() { "use strict"; return nonstrict(); }
25 assertEq(e instanceof TypeError, true,
26 "expected TypeError accessing strict mode caller, got: " + e);
29 /******************************************************************************/
31 if (typeof reportCompare === "function")
32 reportCompare(true, true);
34 print("All tests passed!");