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