summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Promise
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Promise')
-rw-r--r--js/src/tests/test262/built-ins/Promise/Symbol.species/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/all/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/all/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/all/not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/all/resolve-element-function-length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/allSettled/not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/any/not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/create-resolving-functions-reject.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/create-resolving-functions-resolve.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/executor-function-length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/executor-function-not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/catch/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/catch/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/catch/not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/finally/invokes-then-with-function.js4
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/finally/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/finally/not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/finally/resolved-observable-then-calls-argument.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/then/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/then/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/then/not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/race/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/race/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/race/not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/reject-function-length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/reject/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/reject/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/reject/not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Promise/resolve-function-length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/resolve/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/resolve/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Promise/resolve/not-a-constructor.js2
35 files changed, 136 insertions, 116 deletions
diff --git a/js/src/tests/test262/built-ins/Promise/Symbol.species/length.js b/js/src/tests/test262/built-ins/Promise/Symbol.species/length.js
index a2556d0a44..72a2e3ce6c 100644
--- a/js/src/tests/test262/built-ins/Promise/Symbol.species/length.js
+++ b/js/src/tests/test262/built-ins/Promise/Symbol.species/length.js
@@ -25,10 +25,11 @@ features: [Symbol.species]
var desc = Object.getOwnPropertyDescriptor(Promise, Symbol.species);
-assert.sameValue(desc.get.length, 0);
-
-verifyNotEnumerable(desc.get, "length");
-verifyNotWritable(desc.get, "length");
-verifyConfigurable(desc.get, "length");
+verifyProperty(desc.get, "length", {
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/all/length.js b/js/src/tests/test262/built-ins/Promise/all/length.js
index 7769497c7c..38e64b125d 100644
--- a/js/src/tests/test262/built-ins/Promise/all/length.js
+++ b/js/src/tests/test262/built-ins/Promise/all/length.js
@@ -18,10 +18,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.all.length, 1);
-
-verifyNotEnumerable(Promise.all, 'length');
-verifyNotWritable(Promise.all, 'length');
-verifyConfigurable(Promise.all, 'length');
+verifyProperty(Promise.all, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/all/name.js b/js/src/tests/test262/built-ins/Promise/all/name.js
index 552ba841dd..7a6ddaa9a4 100644
--- a/js/src/tests/test262/built-ins/Promise/all/name.js
+++ b/js/src/tests/test262/built-ins/Promise/all/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.all.name, 'all');
-
-verifyNotEnumerable(Promise.all, 'name');
-verifyNotWritable(Promise.all, 'name');
-verifyConfigurable(Promise.all, 'name');
+verifyProperty(Promise.all, "name", {
+ value: "all",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/all/not-a-constructor.js b/js/src/tests/test262/built-ins/Promise/all/not-a-constructor.js
index 9ab0f8e49e..b7c377d84f 100644
--- a/js/src/tests/test262/built-ins/Promise/all/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Promise/all/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Promise.all), false, 'isConstructor(Promise.all)
assert.throws(TypeError, () => {
new Promise.all([]);
-}, '`new Promise.all([])` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/all/resolve-element-function-length.js b/js/src/tests/test262/built-ins/Promise/all/resolve-element-function-length.js
index 6a3568870b..4f3f963e28 100644
--- a/js/src/tests/test262/built-ins/Promise/all/resolve-element-function-length.js
+++ b/js/src/tests/test262/built-ins/Promise/all/resolve-element-function-length.js
@@ -29,10 +29,11 @@ NotPromise.resolve = function(v) {
};
Promise.all.call(NotPromise, [thenable]);
-assert.sameValue(resolveElementFunction.length, 1);
-
-verifyNotEnumerable(resolveElementFunction, "length");
-verifyNotWritable(resolveElementFunction, "length");
-verifyConfigurable(resolveElementFunction, "length");
+verifyProperty(resolveElementFunction, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/allSettled/not-a-constructor.js b/js/src/tests/test262/built-ins/Promise/allSettled/not-a-constructor.js
index 98dc3d6401..4da60aa86b 100644
--- a/js/src/tests/test262/built-ins/Promise/allSettled/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Promise/allSettled/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Promise.allSettled), false, 'isConstructor(Promis
assert.throws(TypeError, () => {
new Promise.allSettled();
-}, '`new Promise.allSettled()` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/any/not-a-constructor.js b/js/src/tests/test262/built-ins/Promise/any/not-a-constructor.js
index 94e37ef3ba..3acdd7ee0c 100644
--- a/js/src/tests/test262/built-ins/Promise/any/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Promise/any/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Promise.any), false, 'isConstructor(Promise.any)
assert.throws(TypeError, () => {
new Promise.any([1]);
-}, '`new Promise.any([1])` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/create-resolving-functions-reject.js b/js/src/tests/test262/built-ins/Promise/create-resolving-functions-reject.js
index 05297b7993..294b48491a 100644
--- a/js/src/tests/test262/built-ins/Promise/create-resolving-functions-reject.js
+++ b/js/src/tests/test262/built-ins/Promise/create-resolving-functions-reject.js
@@ -24,7 +24,7 @@ Promise.prototype.then = function(resolve, reject) {
assert.sameValue(isConstructor(reject), false, 'isConstructor(reject) must return false');
assert.throws(TypeError, () => {
new reject();
- }, '`new reject()` throws TypeError');
+ });
assert.sameValue(reject.length, 1, 'The value of reject.length is 1');
assert.sameValue(reject.name, '', 'The value of reject.name is ""');
diff --git a/js/src/tests/test262/built-ins/Promise/create-resolving-functions-resolve.js b/js/src/tests/test262/built-ins/Promise/create-resolving-functions-resolve.js
index c2c4dc60d2..4460e28fcf 100644
--- a/js/src/tests/test262/built-ins/Promise/create-resolving-functions-resolve.js
+++ b/js/src/tests/test262/built-ins/Promise/create-resolving-functions-resolve.js
@@ -24,7 +24,7 @@ Promise.prototype.then = function(resolve, reject) {
assert.sameValue(isConstructor(resolve), false, 'isConstructor(resolve) must return false');
assert.throws(TypeError, () => {
new resolve();
- }, '`new resolve()` throws TypeError');
+ });
assert.sameValue(resolve.length, 1, 'The value of resolve.length is 1');
assert.sameValue(resolve.name, '', 'The value of resolve.name is ""');
diff --git a/js/src/tests/test262/built-ins/Promise/executor-function-length.js b/js/src/tests/test262/built-ins/Promise/executor-function-length.js
index 1aa7f25e45..9867fb08b0 100644
--- a/js/src/tests/test262/built-ins/Promise/executor-function-length.js
+++ b/js/src/tests/test262/built-ins/Promise/executor-function-length.js
@@ -22,10 +22,11 @@ function NotPromise(executor) {
}
Promise.resolve.call(NotPromise);
-assert.sameValue(executorFunction.length, 2);
-
-verifyNotEnumerable(executorFunction, "length");
-verifyNotWritable(executorFunction, "length");
-verifyConfigurable(executorFunction, "length");
+verifyProperty(executorFunction, "length", {
+ value: 2,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/executor-function-not-a-constructor.js b/js/src/tests/test262/built-ins/Promise/executor-function-not-a-constructor.js
index 5e1f360112..a4002a6ee1 100644
--- a/js/src/tests/test262/built-ins/Promise/executor-function-not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Promise/executor-function-not-a-constructor.js
@@ -30,7 +30,7 @@ assert.sameValue(isConstructor(executorFunction), false, 'isConstructor(executor
assert.throws(TypeError, () => {
new executorFunction();
-}, '`new executorFunction()` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/length.js b/js/src/tests/test262/built-ins/Promise/length.js
index 52923a039c..2173d41d91 100644
--- a/js/src/tests/test262/built-ins/Promise/length.js
+++ b/js/src/tests/test262/built-ins/Promise/length.js
@@ -18,10 +18,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.length, 1);
-
-verifyNotEnumerable(Promise, 'length');
-verifyNotWritable(Promise, 'length');
-verifyConfigurable(Promise, 'length');
+verifyProperty(Promise, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/name.js b/js/src/tests/test262/built-ins/Promise/name.js
index 715bc448f2..1b52152e54 100644
--- a/js/src/tests/test262/built-ins/Promise/name.js
+++ b/js/src/tests/test262/built-ins/Promise/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.name, 'Promise');
-
-verifyNotEnumerable(Promise, 'name');
-verifyNotWritable(Promise, 'name');
-verifyConfigurable(Promise, 'name');
+verifyProperty(Promise, "name", {
+ value: "Promise",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/catch/length.js b/js/src/tests/test262/built-ins/Promise/prototype/catch/length.js
index 1b487e62d9..aa4a89d144 100644
--- a/js/src/tests/test262/built-ins/Promise/prototype/catch/length.js
+++ b/js/src/tests/test262/built-ins/Promise/prototype/catch/length.js
@@ -18,10 +18,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.prototype.catch.length, 1);
-
-verifyNotEnumerable(Promise.prototype.catch, 'length');
-verifyNotWritable(Promise.prototype.catch, 'length');
-verifyConfigurable(Promise.prototype.catch, 'length');
+verifyProperty(Promise.prototype.catch, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/catch/name.js b/js/src/tests/test262/built-ins/Promise/prototype/catch/name.js
index 25a93a3bb9..4df2947d2d 100644
--- a/js/src/tests/test262/built-ins/Promise/prototype/catch/name.js
+++ b/js/src/tests/test262/built-ins/Promise/prototype/catch/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.prototype.catch.name, 'catch');
-
-verifyNotEnumerable(Promise.prototype.catch, 'name');
-verifyNotWritable(Promise.prototype.catch, 'name');
-verifyConfigurable(Promise.prototype.catch, 'name');
+verifyProperty(Promise.prototype.catch, "name", {
+ value: "catch",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/catch/not-a-constructor.js b/js/src/tests/test262/built-ins/Promise/prototype/catch/not-a-constructor.js
index 2ff5558742..3afa8a1021 100644
--- a/js/src/tests/test262/built-ins/Promise/prototype/catch/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Promise/prototype/catch/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
let p = new Promise(() => {}); new p.catch();
-}, '`let p = new Promise(() => {}); new p.catch()` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/finally/invokes-then-with-function.js b/js/src/tests/test262/built-ins/Promise/prototype/finally/invokes-then-with-function.js
index c4597f9cb8..033051d03c 100644
--- a/js/src/tests/test262/built-ins/Promise/prototype/finally/invokes-then-with-function.js
+++ b/js/src/tests/test262/built-ins/Promise/prototype/finally/invokes-then-with-function.js
@@ -48,7 +48,7 @@ assert.sameValue(resolve.name, '', 'The value of resolve.name is ""');
assert.sameValue(isConstructor(resolve), false, 'isConstructor(resolve) must return false');
assert.throws(TypeError, () => {
new resolve();
-}, '`new resolve()` throws TypeError');
+});
assert.sameValue(
@@ -62,7 +62,7 @@ assert.sameValue(reject.name, '', 'The value of reject.name is ""');
assert.sameValue(isConstructor(reject), false, 'isConstructor(reject) must return false');
assert.throws(TypeError, () => {
new reject();
-}, '`new reject()` throws TypeError');
+});
assert.sameValue(result, returnValue, 'The value of `result` is expected to equal the value of returnValue');
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/finally/name.js b/js/src/tests/test262/built-ins/Promise/prototype/finally/name.js
index 82020c1381..ad825c9f53 100644
--- a/js/src/tests/test262/built-ins/Promise/prototype/finally/name.js
+++ b/js/src/tests/test262/built-ins/Promise/prototype/finally/name.js
@@ -21,10 +21,11 @@ includes: [propertyHelper.js]
features: [Promise.prototype.finally]
---*/
-assert.sameValue(Promise.prototype.finally.name, 'finally');
-
-verifyNotEnumerable(Promise.prototype.finally, 'name');
-verifyNotWritable(Promise.prototype.finally, 'name');
-verifyConfigurable(Promise.prototype.finally, 'name');
+verifyProperty(Promise.prototype.finally, "name", {
+ value: "finally",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/finally/not-a-constructor.js b/js/src/tests/test262/built-ins/Promise/prototype/finally/not-a-constructor.js
index 25bb9a6554..61ba99df53 100644
--- a/js/src/tests/test262/built-ins/Promise/prototype/finally/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Promise/prototype/finally/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
let p = new Promise(() => {}); new p.finally();
-}, '`let p = new Promise(() => {}); new p.finally()` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js b/js/src/tests/test262/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js
index 4d183bf248..49cb4840ff 100644
--- a/js/src/tests/test262/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js
+++ b/js/src/tests/test262/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js
@@ -59,7 +59,7 @@ Promise.prototype.then = function(resolve, reject) {
assert.sameValue(isConstructor(reject), false, 'isConstructor(reject) must return false');
assert.throws(TypeError, () => {
new reject();
- }, '`new reject()` throws TypeError');
+ });
assert.sameValue(arguments.length, 2, '`then` invoked with two arguments');
}
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/finally/resolved-observable-then-calls-argument.js b/js/src/tests/test262/built-ins/Promise/prototype/finally/resolved-observable-then-calls-argument.js
index ab7eedb192..0f9fc558c5 100644
--- a/js/src/tests/test262/built-ins/Promise/prototype/finally/resolved-observable-then-calls-argument.js
+++ b/js/src/tests/test262/built-ins/Promise/prototype/finally/resolved-observable-then-calls-argument.js
@@ -35,7 +35,7 @@ Promise.prototype.then = function(resolve) {
assert.sameValue(isConstructor(resolve), false, 'isConstructor(resolve) must return false');
assert.throws(TypeError, () => {
new resolve();
- }, '`new resolve()` throws TypeError');
+ });
assert.sameValue(
resolve.length,
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/then/length.js b/js/src/tests/test262/built-ins/Promise/prototype/then/length.js
index 1e865b0460..2ada466b80 100644
--- a/js/src/tests/test262/built-ins/Promise/prototype/then/length.js
+++ b/js/src/tests/test262/built-ins/Promise/prototype/then/length.js
@@ -18,10 +18,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.prototype.then.length, 2);
-
-verifyNotEnumerable(Promise.prototype.then, 'length');
-verifyNotWritable(Promise.prototype.then, 'length');
-verifyConfigurable(Promise.prototype.then, 'length');
+verifyProperty(Promise.prototype.then, "length", {
+ value: 2,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/then/name.js b/js/src/tests/test262/built-ins/Promise/prototype/then/name.js
index b1c97f9956..82402ea992 100644
--- a/js/src/tests/test262/built-ins/Promise/prototype/then/name.js
+++ b/js/src/tests/test262/built-ins/Promise/prototype/then/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.prototype.then.name, 'then');
-
-verifyNotEnumerable(Promise.prototype.then, 'name');
-verifyNotWritable(Promise.prototype.then, 'name');
-verifyConfigurable(Promise.prototype.then, 'name');
+verifyProperty(Promise.prototype.then, "name", {
+ value: "then",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/then/not-a-constructor.js b/js/src/tests/test262/built-ins/Promise/prototype/then/not-a-constructor.js
index d943772f86..d04c89e111 100644
--- a/js/src/tests/test262/built-ins/Promise/prototype/then/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Promise/prototype/then/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
let p = new Promise(() => {}); new p.then();
-}, '`let p = new Promise(() => {}); new p.then()` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/race/length.js b/js/src/tests/test262/built-ins/Promise/race/length.js
index 0fa1f53d8e..7807708403 100644
--- a/js/src/tests/test262/built-ins/Promise/race/length.js
+++ b/js/src/tests/test262/built-ins/Promise/race/length.js
@@ -18,10 +18,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.race.length, 1);
-
-verifyNotEnumerable(Promise.race, 'length');
-verifyNotWritable(Promise.race, 'length');
-verifyConfigurable(Promise.race, 'length');
+verifyProperty(Promise.race, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/race/name.js b/js/src/tests/test262/built-ins/Promise/race/name.js
index e88d3384ef..d4644e0992 100644
--- a/js/src/tests/test262/built-ins/Promise/race/name.js
+++ b/js/src/tests/test262/built-ins/Promise/race/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.race.name, 'race');
-
-verifyNotEnumerable(Promise.race, 'name');
-verifyNotWritable(Promise.race, 'name');
-verifyConfigurable(Promise.race, 'name');
+verifyProperty(Promise.race, "name", {
+ value: "race",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/race/not-a-constructor.js b/js/src/tests/test262/built-ins/Promise/race/not-a-constructor.js
index a6e0f33d59..732dd53f1d 100644
--- a/js/src/tests/test262/built-ins/Promise/race/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Promise/race/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Promise.race), false, 'isConstructor(Promise.race
assert.throws(TypeError, () => {
new Promise.race([]);
-}, '`new Promise.race([])` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/reject-function-length.js b/js/src/tests/test262/built-ins/Promise/reject-function-length.js
index 76bcb1f5c3..ef48faf0e7 100644
--- a/js/src/tests/test262/built-ins/Promise/reject-function-length.js
+++ b/js/src/tests/test262/built-ins/Promise/reject-function-length.js
@@ -19,10 +19,11 @@ new Promise(function(resolve, reject) {
rejectFunction = reject;
});
-assert.sameValue(rejectFunction.length, 1);
-
-verifyNotEnumerable(rejectFunction, "length");
-verifyNotWritable(rejectFunction, "length");
-verifyConfigurable(rejectFunction, "length");
+verifyProperty(rejectFunction, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/reject/length.js b/js/src/tests/test262/built-ins/Promise/reject/length.js
index 1773dfca57..af9c16e33c 100644
--- a/js/src/tests/test262/built-ins/Promise/reject/length.js
+++ b/js/src/tests/test262/built-ins/Promise/reject/length.js
@@ -18,10 +18,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.reject.length, 1);
-
-verifyNotEnumerable(Promise.reject, 'length');
-verifyNotWritable(Promise.reject, 'length');
-verifyConfigurable(Promise.reject, 'length');
+verifyProperty(Promise.reject, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/reject/name.js b/js/src/tests/test262/built-ins/Promise/reject/name.js
index eb0e4c630f..12db66b706 100644
--- a/js/src/tests/test262/built-ins/Promise/reject/name.js
+++ b/js/src/tests/test262/built-ins/Promise/reject/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.reject.name, 'reject');
-
-verifyNotEnumerable(Promise.reject, 'name');
-verifyNotWritable(Promise.reject, 'name');
-verifyConfigurable(Promise.reject, 'name');
+verifyProperty(Promise.reject, "name", {
+ value: "reject",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/reject/not-a-constructor.js b/js/src/tests/test262/built-ins/Promise/reject/not-a-constructor.js
index 1fa8864edb..9cccfa8e4d 100644
--- a/js/src/tests/test262/built-ins/Promise/reject/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Promise/reject/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Promise.reject), false, 'isConstructor(Promise.re
assert.throws(TypeError, () => {
new Promise.reject();
-}, '`new Promise.reject()` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/resolve-function-length.js b/js/src/tests/test262/built-ins/Promise/resolve-function-length.js
index 9d6ae8ea9e..acac1fef91 100644
--- a/js/src/tests/test262/built-ins/Promise/resolve-function-length.js
+++ b/js/src/tests/test262/built-ins/Promise/resolve-function-length.js
@@ -19,10 +19,11 @@ new Promise(function(resolve, reject) {
resolveFunction = resolve;
});
-assert.sameValue(resolveFunction.length, 1);
-
-verifyNotEnumerable(resolveFunction, "length");
-verifyNotWritable(resolveFunction, "length");
-verifyConfigurable(resolveFunction, "length");
+verifyProperty(resolveFunction, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/resolve/length.js b/js/src/tests/test262/built-ins/Promise/resolve/length.js
index a73283a4b2..64ae9e9130 100644
--- a/js/src/tests/test262/built-ins/Promise/resolve/length.js
+++ b/js/src/tests/test262/built-ins/Promise/resolve/length.js
@@ -18,10 +18,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.resolve.length, 1);
-
-verifyNotEnumerable(Promise.resolve, 'length');
-verifyNotWritable(Promise.resolve, 'length');
-verifyConfigurable(Promise.resolve, 'length');
+verifyProperty(Promise.resolve, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/resolve/name.js b/js/src/tests/test262/built-ins/Promise/resolve/name.js
index b9644562b6..21a6aa62a1 100644
--- a/js/src/tests/test262/built-ins/Promise/resolve/name.js
+++ b/js/src/tests/test262/built-ins/Promise/resolve/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Promise.resolve.name, 'resolve');
-
-verifyNotEnumerable(Promise.resolve, 'name');
-verifyNotWritable(Promise.resolve, 'name');
-verifyConfigurable(Promise.resolve, 'name');
+verifyProperty(Promise.resolve, "name", {
+ value: "resolve",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Promise/resolve/not-a-constructor.js b/js/src/tests/test262/built-ins/Promise/resolve/not-a-constructor.js
index e455743938..97e23b1d57 100644
--- a/js/src/tests/test262/built-ins/Promise/resolve/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Promise/resolve/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Promise.resolve), false, 'isConstructor(Promise.r
assert.throws(TypeError, () => {
new Promise.resolve();
-}, '`new Promise.resolve()` throws TypeError');
+});
reportCompare(0, 0);