diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Map/prototype/get')
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/Map/prototype/get/length.js b/js/src/tests/test262/built-ins/Map/prototype/get/length.js index 4d6e66ffcb..e08afe8d05 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/get/length.js +++ b/js/src/tests/test262/built-ins/Map/prototype/get/length.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.get.length, 1, - 'The value of `Map.prototype.get.length` is `1`' -); - -verifyNotEnumerable(Map.prototype.get, 'length'); -verifyNotWritable(Map.prototype.get, 'length'); -verifyConfigurable(Map.prototype.get, 'length'); +verifyProperty(Map.prototype.get, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Map/prototype/get/name.js b/js/src/tests/test262/built-ins/Map/prototype/get/name.js index ef63a260ee..9e1fd2773e 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/get/name.js +++ b/js/src/tests/test262/built-ins/Map/prototype/get/name.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.get.name, 'get', - 'The value of `Map.prototype.get.name` is `"get"`' -); - -verifyNotEnumerable(Map.prototype.get, 'name'); -verifyNotWritable(Map.prototype.get, 'name'); -verifyConfigurable(Map.prototype.get, 'name'); +verifyProperty(Map.prototype.get, "name", { + value: "get", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Map/prototype/get/not-a-constructor.js b/js/src/tests/test262/built-ins/Map/prototype/get/not-a-constructor.js index 9bc9b965e2..89a5b51a99 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/get/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Map/prototype/get/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Map.prototype.get), false, 'isConstructor(Map.pro assert.throws(TypeError, () => { let m = new Map(); new m.get(); -}, '`let m = new Map(); new m.get()` throws TypeError'); +}); reportCompare(0, 0); |