Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / String / prototype / at / length.js
blobd552c459bd12361cd37e45bcf93f80e957cfa6ad
1 // Copyright (C) 2020 Rick Waldron. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-string.prototype.at
5 description: >
6   String.prototype.at.length value and descriptor.
7 info: |
8   String.prototype.at( index )
10   17 ECMAScript Standard Built-in Objects
12 includes: [propertyHelper.js]
13 features: [String.prototype.at]
14 ---*/
15 assert.sameValue(typeof String.prototype.at, 'function');
17 assert.sameValue(
18   String.prototype.at.length, 1,
19   'The value of String.prototype.at.length is 1'
22 verifyNotEnumerable(String.prototype.at, 'length');
23 verifyNotWritable(String.prototype.at, 'length');
24 verifyConfigurable(String.prototype.at, 'length');
26 reportCompare(0, 0);