blob: 4e44e839457576159879ac2f9811009a791e5dd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class C {
x = function(){};
0 = function(){};
["y" + 0] = function(){};
}
let c = new C();
assertEq(c["x"].name, "x");
assertEq(c[0].name, "0");
assertEq(c["y0"].name, "y0");
if (typeof reportCompare === "function")
reportCompare(true, true);
|