diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/tests/non262/Array/group-propertkey-is-length.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/tests/non262/Array/group-propertkey-is-length.js b/js/src/tests/non262/Array/group-propertkey-is-length.js new file mode 100644 index 0000000000..79cb06b6a2 --- /dev/null +++ b/js/src/tests/non262/Array/group-propertkey-is-length.js @@ -0,0 +1,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); |