diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/pop')
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/pop/length.js b/js/src/tests/test262/built-ins/Array/prototype/pop/length.js index 6285c752f0..2f0ec4f16e 100644 --- a/js/src/tests/test262/built-ins/Array/prototype/pop/length.js +++ b/js/src/tests/test262/built-ins/Array/prototype/pop/length.js @@ -21,10 +21,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.pop.length, 0); - -verifyNotEnumerable(Array.prototype.pop, 'length'); -verifyNotWritable(Array.prototype.pop, 'length'); -verifyConfigurable(Array.prototype.pop, 'length'); +verifyProperty(Array.prototype.pop, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Array/prototype/pop/name.js b/js/src/tests/test262/built-ins/Array/prototype/pop/name.js index 891fb91858..19b678268a 100644 --- a/js/src/tests/test262/built-ins/Array/prototype/pop/name.js +++ b/js/src/tests/test262/built-ins/Array/prototype/pop/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.pop.name, "pop"); - -verifyNotEnumerable(Array.prototype.pop, "name"); -verifyNotWritable(Array.prototype.pop, "name"); -verifyConfigurable(Array.prototype.pop, "name"); +verifyProperty(Array.prototype.pop, "name", { + value: "pop", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Array/prototype/pop/not-a-constructor.js b/js/src/tests/test262/built-ins/Array/prototype/pop/not-a-constructor.js index 849c2b3305..ac67502c7e 100644 --- a/js/src/tests/test262/built-ins/Array/prototype/pop/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Array/prototype/pop/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Array.prototype.pop), false, 'isConstructor(Array assert.throws(TypeError, () => { new Array.prototype.pop(); -}, '`new Array.prototype.pop()` throws TypeError'); +}); reportCompare(0, 0); |