summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/flat/length.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/flat/length.js')
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/flat/length.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/flat/length.js b/js/src/tests/test262/built-ins/Array/prototype/flat/length.js
new file mode 100644
index 0000000000..0978244cc0
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Array/prototype/flat/length.js
@@ -0,0 +1,23 @@
+// Copyright (C) 2018 Shilpi Jain and Michael Ficarra. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+esid: sec-array.prototype.flat
+description: Array.prototype.flat.length value and descriptor.
+info: >
+ 17 ECMAScript Standard Built-in Objects
+includes: [propertyHelper.js]
+features: [Array.prototype.flat]
+---*/
+
+assert.sameValue(
+ Array.prototype.flat.length, 0,
+ 'The value of `Array.prototype.flat.length` is `0`'
+);
+
+verifyProperty(Array.prototype.flat, 'length', {
+ enumerable: false,
+ writable: false,
+ configurable: true,
+});
+
+reportCompare(0, 0);