Bug 1185106 - Part 11.6: Add test for async function expression binding identity. r=till

MozReview-Commit-ID: J7YAj7XIh24
This commit is contained in:
Tooru Fujisawa 2016-08-29 14:51:10 +09:00
parent f76ad02048
commit 965b052608

View File

@ -0,0 +1,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);