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