summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/assign
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Object/assign')
-rw-r--r--js/src/tests/test262/built-ins/Object/assign/assign-descriptor.js8
-rw-r--r--js/src/tests/test262/built-ins/Object/assign/assign-length.js13
-rw-r--r--js/src/tests/test262/built-ins/Object/assign/name.js15
-rw-r--r--js/src/tests/test262/built-ins/Object/assign/not-a-constructor.js2
4 files changed, 18 insertions, 20 deletions
diff --git a/js/src/tests/test262/built-ins/Object/assign/assign-descriptor.js b/js/src/tests/test262/built-ins/Object/assign/assign-descriptor.js
index 5ee1c8216e..29f23b7b63 100644
--- a/js/src/tests/test262/built-ins/Object/assign/assign-descriptor.js
+++ b/js/src/tests/test262/built-ins/Object/assign/assign-descriptor.js
@@ -7,8 +7,10 @@ includes: [propertyHelper.js]
es6id: 19.1.2.1
---*/
-verifyWritable(Object, "assign");
-verifyNotEnumerable(Object, "assign");
-verifyConfigurable(Object, "assign");
+verifyProperty(Object, "assign", {
+ writable: true,
+ enumerable: false,
+ configurable: true,
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Object/assign/assign-length.js b/js/src/tests/test262/built-ins/Object/assign/assign-length.js
index bcfe2e2eda..600508b7b0 100644
--- a/js/src/tests/test262/built-ins/Object/assign/assign-length.js
+++ b/js/src/tests/test262/built-ins/Object/assign/assign-length.js
@@ -15,12 +15,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(
- Object.assign.length, 2, "The length property of the assign method should be 2."
-);
-
-verifyNotEnumerable(Object.assign, 'length');
-verifyNotWritable(Object.assign, 'length');
-verifyConfigurable(Object.assign, 'length');
+verifyProperty(Object.assign, "length", {
+ value: 2,
+ writable: false,
+ enumerable: false,
+ configurable: true,
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Object/assign/name.js b/js/src/tests/test262/built-ins/Object/assign/name.js
index bab32445c2..c67ef4b8e0 100644
--- a/js/src/tests/test262/built-ins/Object/assign/name.js
+++ b/js/src/tests/test262/built-ins/Object/assign/name.js
@@ -19,14 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(
- Object.assign.name,
- 'assign',
- 'The value of `Object.assign.name` is `"assign"`'
-);
-
-verifyNotEnumerable(Object.assign, 'name');
-verifyNotWritable(Object.assign, 'name');
-verifyConfigurable(Object.assign, 'name');
+verifyProperty(Object.assign, "name", {
+ value: "assign",
+ writable: false,
+ enumerable: false,
+ configurable: true,
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Object/assign/not-a-constructor.js b/js/src/tests/test262/built-ins/Object/assign/not-a-constructor.js
index 3c66a4c64a..b94cd4b8e6 100644
--- a/js/src/tests/test262/built-ins/Object/assign/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Object/assign/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Object.assign), false, 'isConstructor(Object.assi
assert.throws(TypeError, () => {
new Object.assign({});
-}, '`new Object.assign({})` throws TypeError');
+});
reportCompare(0, 0);