diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Promise/reject-function-length.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Promise/reject-function-length.js | 11 |
1 files changed, 6 insertions, 5 deletions
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); |