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