Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / RegExp / prototype / unicode / length.js
blobc661157d486defc73d48988abbf8a809b89082bd
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: 21.2.5.15
5 description: >
6     "length" property of `unicode` accessor function
7 info: |
8     ES6 section 17: Every built-in Function object, including constructors, has
9     a length property whose value is an integer. Unless otherwise specified,
10     this value is equal to the largest number of named arguments shown in the
11     subclause headings for the function description, including optional
12     parameters.
14     [...]
16     Unless otherwise specified, the length property of a built-in Function
17     object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
18     [[Configurable]]: true }.
19 includes: [propertyHelper.js]
20 ---*/
22 var getter = Object.getOwnPropertyDescriptor(RegExp.prototype, 'unicode').get;
24 verifyProperty(getter, "length", {
25   value: 0,
26   writable: false,
27   enumerable: false,
28   configurable: true
29 });
31 reportCompare(0, 0);