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