summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/async-functions/length.js
blob: da95e23b8949f0a67e09c1ddc3d476610131ff3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var BUGNUMBER = 1185106;
var summary = "async function length";

print(BUGNUMBER + ": " + summary);

assertEq(async function() {}.length, 0);
assertEq(async function(a) {}.length, 1);
assertEq(async function(a, b, c) {}.length, 3);
assertEq(async function(a, b, c, ...d) {}.length, 3);

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