summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/fill
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/fill')
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/fill/length.js14
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/fill/name.js14
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/fill/not-a-constructor.js2
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/fill/length.js b/js/src/tests/test262/built-ins/Array/prototype/fill/length.js
index 1d12345bc0..5a5000c55a 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/fill/length.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/fill/length.js
@@ -8,13 +8,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(
- Array.prototype.fill.length, 1,
- 'The value of `Array.prototype.fill.length` is `1`'
-);
-
-verifyNotEnumerable(Array.prototype.fill, 'length');
-verifyNotWritable(Array.prototype.fill, 'length');
-verifyConfigurable(Array.prototype.fill, 'length');
+verifyProperty(Array.prototype.fill, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/fill/name.js b/js/src/tests/test262/built-ins/Array/prototype/fill/name.js
index 35d210dec3..e2c7b83e01 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/fill/name.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/fill/name.js
@@ -12,13 +12,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(
- Array.prototype.fill.name, 'fill',
- 'The value of `Array.prototype.fill.name` is `"fill"`'
-);
-
-verifyNotEnumerable(Array.prototype.fill, 'name');
-verifyNotWritable(Array.prototype.fill, 'name');
-verifyConfigurable(Array.prototype.fill, 'name');
+verifyProperty(Array.prototype.fill, "name", {
+ value: "fill",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/fill/not-a-constructor.js b/js/src/tests/test262/built-ins/Array/prototype/fill/not-a-constructor.js
index 77d1be633b..9adb186adb 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/fill/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/fill/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Array.prototype.fill), false, 'isConstructor(Arra
assert.throws(TypeError, () => {
new Array.prototype.fill();
-}, '`new Array.prototype.fill()` throws TypeError');
+});
reportCompare(0, 0);