1 // Copyright (C) 2020 Rick Waldron. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 esid: sec-string.prototype.at
6 Return abrupt from RequireObjectCoercible(this value).
8 String.prototype.at( index )
10 Let O be ? RequireObjectCoercible(this value).
12 features: [String.prototype.at]
14 assert.sameValue(typeof String.prototype.at, 'function');
16 assert.throws(TypeError, () => {
17 String.prototype.at.call(undefined);
20 assert.throws(TypeError, () => {
21 String.prototype.at.call(null);