blob: e9374ff05756e6ab2313b56d9d679d57156b38f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
let i = 0;
function f(x) {
assertEq(++i, x);
return x;
}
class C{
[f(1)](){}
[f(2)] = "hi";
[f(3)](){}
[f(4)] = "hi";
}
new C();
if (typeof reportCompare === "function")
reportCompare(true, true);
|