diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Date/now')
-rw-r--r-- | js/src/tests/test262/built-ins/Date/now/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Date/now/not-a-constructor.js | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/js/src/tests/test262/built-ins/Date/now/name.js b/js/src/tests/test262/built-ins/Date/now/name.js index 4189f1f4e7..f150e257f8 100644 --- a/js/src/tests/test262/built-ins/Date/now/name.js +++ b/js/src/tests/test262/built-ins/Date/now/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.now.name, "now"); - -verifyNotEnumerable(Date.now, "name"); -verifyNotWritable(Date.now, "name"); -verifyConfigurable(Date.now, "name"); +verifyProperty(Date.now, "name", { + value: "now", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/now/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/now/not-a-constructor.js index d6a7cf0555..9aac86a56f 100644 --- a/js/src/tests/test262/built-ins/Date/now/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/now/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Date.now), false, 'isConstructor(Date.now) must r assert.throws(TypeError, () => { new Date.now(); -}, '`new Date.now()` throws TypeError'); +}); reportCompare(0, 0); |