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