diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Map/prototype/has')
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/Map/prototype/has/length.js b/js/src/tests/test262/built-ins/Map/prototype/has/length.js index d5e9b5b48e..3326625b1f 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/has/length.js +++ b/js/src/tests/test262/built-ins/Map/prototype/has/length.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.has.length, 1, - 'The value of `Map.prototype.has.length` is `1`' -); - -verifyNotEnumerable(Map.prototype.has, 'length'); -verifyNotWritable(Map.prototype.has, 'length'); -verifyConfigurable(Map.prototype.has, 'length'); +verifyProperty(Map.prototype.has, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Map/prototype/has/name.js b/js/src/tests/test262/built-ins/Map/prototype/has/name.js index 82e1dc3f01..5b406a0d68 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/has/name.js +++ b/js/src/tests/test262/built-ins/Map/prototype/has/name.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.has.name, 'has', - 'The value of `Map.prototype.has.name` is `"has"`' -); - -verifyNotEnumerable(Map.prototype.has, 'name'); -verifyNotWritable(Map.prototype.has, 'name'); -verifyConfigurable(Map.prototype.has, 'name'); +verifyProperty(Map.prototype.has, "name", { + value: "has", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Map/prototype/has/not-a-constructor.js b/js/src/tests/test262/built-ins/Map/prototype/has/not-a-constructor.js index 6f1d7d9253..1c5b82eb6a 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/has/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Map/prototype/has/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Map.prototype.has), false, 'isConstructor(Map.pro assert.throws(TypeError, () => { let m = new Map(); new m.has(); -}, '`let m = new Map(); new m.has()` throws TypeError'); +}); reportCompare(0, 0); |