summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/async-functions/async-function-declaration-in-modules.js
blob: 41cc37bf33d7d2498ac61fea8657b0733526f746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |reftest| module

async function f() {
    return "success";
}

var AsyncFunction = (async function(){}).constructor;

assertEq(f instanceof AsyncFunction, true);

f().then(v => {
    reportCompare("success", v);
});