summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/isFrozen
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Object/isFrozen')
-rw-r--r--js/src/tests/test262/built-ins/Object/isFrozen/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Object/isFrozen/not-a-constructor.js2
2 files changed, 7 insertions, 6 deletions
diff --git a/js/src/tests/test262/built-ins/Object/isFrozen/name.js b/js/src/tests/test262/built-ins/Object/isFrozen/name.js
index 4b83c75722..d769d8939d 100644
--- a/js/src/tests/test262/built-ins/Object/isFrozen/name.js
+++ b/js/src/tests/test262/built-ins/Object/isFrozen/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Object.isFrozen.name, "isFrozen");
-
-verifyNotEnumerable(Object.isFrozen, "name");
-verifyNotWritable(Object.isFrozen, "name");
-verifyConfigurable(Object.isFrozen, "name");
+verifyProperty(Object.isFrozen, "name", {
+ value: "isFrozen",
+ writable: false,
+ enumerable: false,
+ configurable: true,
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Object/isFrozen/not-a-constructor.js b/js/src/tests/test262/built-ins/Object/isFrozen/not-a-constructor.js
index 5f8014985b..cc42d1d9e8 100644
--- a/js/src/tests/test262/built-ins/Object/isFrozen/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Object/isFrozen/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Object.isFrozen), false, 'isConstructor(Object.is
assert.throws(TypeError, () => {
new Object.isFrozen({});
-}, '`new Object.isFrozen({})` throws TypeError');
+});
reportCompare(0, 0);