summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Promise/prototype/catch/length.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Promise/prototype/catch/length.js')
-rw-r--r--js/src/tests/test262/built-ins/Promise/prototype/catch/length.js11
1 files changed, 6 insertions, 5 deletions
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);