summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Proxy/revocable
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Proxy/revocable')
-rw-r--r--js/src/tests/test262/built-ins/Proxy/revocable/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Proxy/revocable/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Proxy/revocable/not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-length.js11
-rw-r--r--js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js2
5 files changed, 20 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/Proxy/revocable/length.js b/js/src/tests/test262/built-ins/Proxy/revocable/length.js
index 8c1b055371..1b5dfc85c3 100644
--- a/js/src/tests/test262/built-ins/Proxy/revocable/length.js
+++ b/js/src/tests/test262/built-ins/Proxy/revocable/length.js
@@ -23,10 +23,11 @@ includes: [propertyHelper.js]
features: [Proxy]
---*/
-assert.sameValue(Proxy.revocable.length, 2);
-
-verifyNotEnumerable(Proxy.revocable, "length");
-verifyNotWritable(Proxy.revocable, "length");
-verifyConfigurable(Proxy.revocable, "length");
+verifyProperty(Proxy.revocable, "length", {
+ value: 2,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Proxy/revocable/name.js b/js/src/tests/test262/built-ins/Proxy/revocable/name.js
index 0e7ce54890..71690c482b 100644
--- a/js/src/tests/test262/built-ins/Proxy/revocable/name.js
+++ b/js/src/tests/test262/built-ins/Proxy/revocable/name.js
@@ -20,10 +20,11 @@ includes: [propertyHelper.js]
features: [Proxy]
---*/
-assert.sameValue(Proxy.revocable.name, "revocable");
-
-verifyNotEnumerable(Proxy.revocable, "name");
-verifyNotWritable(Proxy.revocable, "name");
-verifyConfigurable(Proxy.revocable, "name");
+verifyProperty(Proxy.revocable, "name", {
+ value: "revocable",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Proxy/revocable/not-a-constructor.js b/js/src/tests/test262/built-ins/Proxy/revocable/not-a-constructor.js
index 0d1e9bdff5..95fb044f82 100644
--- a/js/src/tests/test262/built-ins/Proxy/revocable/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Proxy/revocable/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Proxy.revocable), false, 'isConstructor(Proxy.rev
assert.throws(TypeError, () => {
new Proxy.revocable({}, {});
-}, '`new Proxy.revocable({}, {})` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-length.js b/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-length.js
index ac59134301..2460658438 100644
--- a/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-length.js
+++ b/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-length.js
@@ -17,10 +17,11 @@ features: [Proxy]
var revocationFunction = Proxy.revocable({}, {}).revoke;
-assert.sameValue(revocationFunction.length, 0);
-
-verifyNotEnumerable(revocationFunction, "length");
-verifyNotWritable(revocationFunction, "length");
-verifyConfigurable(revocationFunction, "length");
+verifyProperty(revocationFunction, "length", {
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js b/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js
index 643c7e57c2..40fdf658ea 100644
--- a/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js
@@ -23,7 +23,7 @@ assert.sameValue(
assert.sameValue(isConstructor(revocationFunction), false, 'isConstructor(revocationFunction) must return false');
assert.throws(TypeError, () => {
new revocationFunction();
-}, '`new revocationFunction()` throws TypeError');
+});