Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
6
node_modules/es-abstract/2023/GetStringIndex.js
generated
vendored
6
node_modules/es-abstract/2023/GetStringIndex.js
generated
vendored
|
|
@ -1,12 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
var callBound = require('call-bind/callBound');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var StringToCodePoints = require('./StringToCodePoints');
|
||||
var Type = require('./Type');
|
||||
|
||||
var isInteger = require('../helpers/isInteger');
|
||||
|
||||
|
|
@ -15,7 +13,7 @@ var $indexOf = callBound('String.prototype.indexOf');
|
|||
// https://262.ecma-international.org/13.0/#sec-getstringindex
|
||||
|
||||
module.exports = function GetStringIndex(S, e) {
|
||||
if (Type(S) !== 'String') {
|
||||
if (typeof S !== 'string') {
|
||||
throw new $TypeError('Assertion failed: `S` must be a String');
|
||||
}
|
||||
if (!isInteger(e) || e < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue