summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/findIndex/name.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/findIndex/name.js')
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/findIndex/name.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/findIndex/name.js b/js/src/tests/test262/built-ins/Array/prototype/findIndex/name.js
index ad6b6d5a28..564448f064 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/findIndex/name.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/findIndex/name.js
@@ -12,13 +12,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(
- Array.prototype.findIndex.name, 'findIndex',
- 'The value of `Array.prototype.findIndex.name` is `"findIndex"`'
-);
-
-verifyNotEnumerable(Array.prototype.findIndex, 'name');
-verifyNotWritable(Array.prototype.findIndex, 'name');
-verifyConfigurable(Array.prototype.findIndex, 'name');
+verifyProperty(Array.prototype.findIndex, "name", {
+ value: "findIndex",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);