diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/at')
-rw-r--r-- | js/src/tests/test262/built-ins/Array/prototype/at/length.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/at/length.js b/js/src/tests/test262/built-ins/Array/prototype/at/length.js index 219f329eb4..68fb344a6d 100644 --- a/js/src/tests/test262/built-ins/Array/prototype/at/length.js +++ b/js/src/tests/test262/built-ins/Array/prototype/at/length.js @@ -18,13 +18,11 @@ assert.sameValue( 'The value of `typeof Array.prototype.at` is expected to be "function"' ); -assert.sameValue( - Array.prototype.at.length, 1, - 'The value of Array.prototype.at.length is expected to be 1' -); - -verifyNotEnumerable(Array.prototype.at, 'length'); -verifyNotWritable(Array.prototype.at, 'length'); -verifyConfigurable(Array.prototype.at, 'length'); +verifyProperty(Array.prototype.at, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); |