From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- .../test262/built-ins/Date/prototype/toDateString/name.js | 11 ++++++----- .../Date/prototype/toDateString/not-a-constructor.js | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'js/src/tests/test262/built-ins/Date/prototype/toDateString') diff --git a/js/src/tests/test262/built-ins/Date/prototype/toDateString/name.js b/js/src/tests/test262/built-ins/Date/prototype/toDateString/name.js index 3cd99649b7..d6c2ac0c85 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toDateString/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toDateString/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toDateString.name, "toDateString"); - -verifyNotEnumerable(Date.prototype.toDateString, "name"); -verifyNotWritable(Date.prototype.toDateString, "name"); -verifyConfigurable(Date.prototype.toDateString, "name"); +verifyProperty(Date.prototype.toDateString, "name", { + value: "toDateString", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toDateString/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/toDateString/not-a-constructor.js index b70807dc68..4e01ccd8d4 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toDateString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toDateString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toDateString(); -}, '`let date = new Date(Date.now()); new date.toDateString()` throws TypeError'); +}); reportCompare(0, 0); -- cgit v1.2.3