diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Date/prototype/getMinutes')
-rw-r--r-- | js/src/tests/test262/built-ins/Date/prototype/getMinutes/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Date/prototype/getMinutes/not-a-constructor.js | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/js/src/tests/test262/built-ins/Date/prototype/getMinutes/name.js b/js/src/tests/test262/built-ins/Date/prototype/getMinutes/name.js index e1d71363bb..b6b919af98 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getMinutes/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getMinutes/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getMinutes.name, "getMinutes"); - -verifyNotEnumerable(Date.prototype.getMinutes, "name"); -verifyNotWritable(Date.prototype.getMinutes, "name"); -verifyConfigurable(Date.prototype.getMinutes, "name"); +verifyProperty(Date.prototype.getMinutes, "name", { + value: "getMinutes", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getMinutes/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getMinutes/not-a-constructor.js index 21682d79fc..1459f9b19f 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getMinutes/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getMinutes/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getMinutes(); -}, '`let date = new Date(Date.now()); new date.getMinutes()` throws TypeError'); +}); reportCompare(0, 0); |