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