diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Map/prototype/values')
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/Map/prototype/values/length.js b/js/src/tests/test262/built-ins/Map/prototype/values/length.js index 304cdd7983..e647192bd8 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/values/length.js +++ b/js/src/tests/test262/built-ins/Map/prototype/values/length.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.values.length, 0, - 'The value of `Map.prototype.values.length` is `0`' -); - -verifyNotEnumerable(Map.prototype.values, 'length'); -verifyNotWritable(Map.prototype.values, 'length'); -verifyConfigurable(Map.prototype.values, 'length'); +verifyProperty(Map.prototype.values, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Map/prototype/values/name.js b/js/src/tests/test262/built-ins/Map/prototype/values/name.js index 03827d01f3..c07ffcdcdb 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/values/name.js +++ b/js/src/tests/test262/built-ins/Map/prototype/values/name.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.values.name, 'values', - 'The value of `Map.prototype.values.name` is `"values"`' -); - -verifyNotEnumerable(Map.prototype.values, 'name'); -verifyNotWritable(Map.prototype.values, 'name'); -verifyConfigurable(Map.prototype.values, 'name'); +verifyProperty(Map.prototype.values, "name", { + value: "values", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Map/prototype/values/not-a-constructor.js b/js/src/tests/test262/built-ins/Map/prototype/values/not-a-constructor.js index 0fd6e656d2..9677e75064 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/values/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Map/prototype/values/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Map.prototype.values), false, 'isConstructor(Map. assert.throws(TypeError, () => { let m = new Map(); new m.values(); -}, '`let m = new Map(); new m.values()` throws TypeError'); +}); reportCompare(0, 0); |