Debian Codegraph @

js/src/tests/non262/BigInt/property-name-guessed-name.js

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