summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/extensions/censor-strict-caller.js
blob: b23469953d69eaf207fc404a264b2c5d80260a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/


function nonstrict() { return nonstrict.caller; }
function strict() { "use strict"; return nonstrict(); }

assertEq(strict(), null);

/******************************************************************************/

if (typeof reportCompare === "function")
  reportCompare(true, true);

print("All tests passed!");