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