blob: 79cb06b6a2a1ab04f4e3f9ed8712886b29395d83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// |reftest| shell-option(--enable-array-grouping) skip-if(!Array.prototype.group)
var array = [0];
var grouped = array.group(() => "length");
assertDeepEq(grouped, Object.create(null, {
length: {
value: [0],
writable: true,
enumerable: true,
configurable: true,
},
}));
if (typeof reportCompare === "function")
reportCompare(0, 0);
|