Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Promise / reject / length.js
blobaf9c16e33c411a7fde076c16ef092916322a6773
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 es6id: 25.4.4.4
5 description: Promise.reject `length` property
6 info: |
7     ES6 Section 17:
8     Every built-in Function object, including constructors, has a length
9     property whose value is an integer. Unless otherwise specified, this value
10     is equal to the largest number of named arguments shown in the subclause
11     headings for the function description, including optional parameters.
13     [...]
15     Unless otherwise specified, the length property of a built-in Function
16     object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
17     [[Configurable]]: true }.
18 includes: [propertyHelper.js]
19 ---*/
21 verifyProperty(Promise.reject, "length", {
22   value: 1,
23   writable: false,
24   enumerable: false,
25   configurable: true
26 });
28 reportCompare(0, 0);