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