summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/async-functions/inner-caller.js
blob: f76f978f01a6bd6e0942065fcdc9c3ad28af9461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function g() {
      return g.caller;
}

(async function f() {
  var inner = g();
  assertEq(inner, null);
})();

(async function f() {
  "use strict";
  var inner = g();
  assertEq(inner, null);
})();

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