blob: feb91345b22ad448eae90013e2019590936dfc1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// |reftest| skip-if(!xulRuntime.shell)
// BigInts currently don't participate when computing guessed function names.
var p = {};
p[1] = function(){};
p[2n] = function(){};
assertEq(displayName(p[1]), "p[1]");
assertEq(displayName(p[2]), "");
var q = {
1: [function(){}],
2n: [function(){}],
};
assertEq(displayName(q[1][0]), "q[1]<");
assertEq(displayName(q[2][0]), "q<");
if (typeof reportCompare === "function")
reportCompare(true, true);
|