mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1185106 - Part 11.6: Add test for async function expression binding identity. r=till
MozReview-Commit-ID: J7YAj7XIh24
This commit is contained in:
parent
f76ad02048
commit
965b052608
14
js/src/tests/ecma_7/AsyncFunctions/identity.js
Normal file
14
js/src/tests/ecma_7/AsyncFunctions/identity.js
Normal 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);
|
Loading…
Reference in New Issue
Block a user