blob: 523eb79ead0feaf98c2480aa469fb86872e75605 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
var BUGNUMBER = 1185106;
var summary = "caller property of function inside async function should return wrapped async function";
print(BUGNUMBER + ": " + summary);
(async function f() {
var inner = (function g() {
return g.caller;
})();
assertEq(inner, f);
})();
(async function f() {
"use strict";
try {
(function g() {
return g.caller;
})();
assertEq(true, false);
} catch (e) {
assertEq(e instanceof TypeError, true);
}
})();
if (typeof reportCompare === "function")
reportCompare(true, true);
|