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