summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Date/prototype/getDay
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Date/prototype/getDay')
-rw-r--r--js/src/tests/test262/built-ins/Date/prototype/getDay/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Date/prototype/getDay/not-a-constructor.js2
2 files changed, 7 insertions, 6 deletions
diff --git a/js/src/tests/test262/built-ins/Date/prototype/getDay/name.js b/js/src/tests/test262/built-ins/Date/prototype/getDay/name.js
index 89c16d7928..3244db692f 100644
--- a/js/src/tests/test262/built-ins/Date/prototype/getDay/name.js
+++ b/js/src/tests/test262/built-ins/Date/prototype/getDay/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Date.prototype.getDay.name, "getDay");
-
-verifyNotEnumerable(Date.prototype.getDay, "name");
-verifyNotWritable(Date.prototype.getDay, "name");
-verifyConfigurable(Date.prototype.getDay, "name");
+verifyProperty(Date.prototype.getDay, "name", {
+ value: "getDay",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Date/prototype/getDay/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getDay/not-a-constructor.js
index 08a25137e9..e4fc295059 100644
--- a/js/src/tests/test262/built-ins/Date/prototype/getDay/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Date/prototype/getDay/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
let date = new Date(Date.now()); new date.getDay();
-}, '`let date = new Date(Date.now()); new date.getDay()` throws TypeError');
+});
reportCompare(0, 0);