Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / String / prototype / matchAll / length.js
blob40121111fb1f13d9818f3ae5b977a5d7181bf5bc
1 // Copyright (C) 2018 Jordan Harband. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: pending
5 description: String.prototype.matchAll `length` property
6 info: |
7   17 ECMAScript Standard Built-in Objects:
9     [...]
11     Every built-in function object, including constructors, has a length
12     property whose value is an integer. Unless otherwise specified, this
13     value is equal to the largest number of named arguments shown in the
14     subclause headings for the function description. Optional parameters
15     (which are indicated with brackets: [ ]) or rest parameters (which
16     are shown using the form «...name») are not included in the default
17     argument count.
19     Unless otherwise specified, the length property of a built-in function
20     object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
21     [[Configurable]]: true }.
22 includes: [propertyHelper.js]
23 features: [String.prototype.matchAll]
24 ---*/
26 verifyProperty(String.prototype.matchAll, "length", {
27   value: 1,
28   writable: false,
29   enumerable: false,
30   configurable: true
31 });
33 reportCompare(0, 0);