summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_7/AsyncFunctions/identity.js
blob: f3876bf23311e5f9f4da4a0438da4f845968674d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |reftest| skip-if(!xulRuntime.shell) -- needs drainJobQueue

var BUGNUMBER = 1185106;
var summary = "Named async function expression should get wrapped function for the name inside it";

print(BUGNUMBER + ": " + summary);

var expr = async function foo() {
  return foo;
};
assertEventuallyEq(expr(), expr);

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