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.
5 description: RegExp.prototype[Symbol.search] `length` property
9 Every built-in Function object, including constructors, has a length
10 property whose value is an integer. Unless otherwise specified, this value
11 is equal to the largest number of named arguments shown in the subclause
12 headings for the function description, including optional parameters.
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 features: [Symbol.search]
20 includes: [propertyHelper.js]
23 assert.sameValue(RegExp.prototype[Symbol.search].length, 1);
25 verifyNotEnumerable(RegExp.prototype[Symbol.search], 'length');
26 verifyNotWritable(RegExp.prototype[Symbol.search], 'length');
27 verifyConfigurable(RegExp.prototype[Symbol.search], 'length');