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