summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Proxy
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Proxy')
-rw-r--r--js/src/tests/test262/built-ins/Proxy/create-target-is-not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Proxy/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Proxy/name.js11
-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
8 files changed, 33 insertions, 28 deletions
diff --git a/js/src/tests/test262/built-ins/Proxy/create-target-is-not-a-constructor.js b/js/src/tests/test262/built-ins/Proxy/create-target-is-not-a-constructor.js
index 2bd3fe46c5..47551407f6 100644
--- a/js/src/tests/test262/built-ins/Proxy/create-target-is-not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Proxy/create-target-is-not-a-constructor.js
@@ -28,6 +28,6 @@ proxy(); // the Proxy object is callable
assert.sameValue(isConstructor(proxy), false, 'isConstructor(proxy) must return false');
assert.throws(TypeError, () => {
new proxy();
-}, '`new proxy()` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Proxy/length.js b/js/src/tests/test262/built-ins/Proxy/length.js
index 9bacc49713..01b9b1407e 100644
--- a/js/src/tests/test262/built-ins/Proxy/length.js
+++ b/js/src/tests/test262/built-ins/Proxy/length.js
@@ -11,10 +11,11 @@ includes: [propertyHelper.js]
features: [Proxy]
---*/
-assert.sameValue(Proxy.length, 2, "The value of `Proxy.length` is `2`");
-
-verifyNotEnumerable(Proxy, "length");
-verifyNotWritable(Proxy, "length");
-verifyConfigurable(Proxy, "length");
+verifyProperty(Proxy, "length", {
+ value: 2,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Proxy/name.js b/js/src/tests/test262/built-ins/Proxy/name.js
index 31d3ec097d..abdf0dda73 100644
--- a/js/src/tests/test262/built-ins/Proxy/name.js
+++ b/js/src/tests/test262/built-ins/Proxy/name.js
@@ -11,10 +11,11 @@ includes: [propertyHelper.js]
features: [Proxy]
---*/
-assert.sameValue(Proxy.name, "Proxy", "The value of `Proxy.name` is `'Proxy'`");
-
-verifyNotEnumerable(Proxy, "name");
-verifyNotWritable(Proxy, "name");
-verifyConfigurable(Proxy, "name");
+verifyProperty(Proxy, "name", {
+ value: "Proxy",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
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');
+});