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