summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Array/group-propertkey-is-length.js
blob: 49eb512ec6313ef993d752920dbbeee2d10a8ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var array = [0];

var grouped = Object.groupBy(array, () => "length");

assertDeepEq(grouped, Object.create(null, {
  length: {
    value: [0],
    writable: true,
    enumerable: true,
    configurable: true,
  },
}));

if (typeof reportCompare === "function")
  reportCompare(0, 0);