Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
8
node_modules/es-abstract/2023/StringGetOwnProperty.js
generated
vendored
8
node_modules/es-abstract/2023/StringGetOwnProperty.js
generated
vendored
|
|
@ -1,8 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var callBound = require('call-bind/callBound');
|
||||
var $charAt = callBound('String.prototype.charAt');
|
||||
|
|
@ -24,13 +22,13 @@ module.exports = function StringGetOwnProperty(S, P) {
|
|||
str = $stringToString(S);
|
||||
} catch (e) { /**/ }
|
||||
}
|
||||
if (Type(str) !== 'String') {
|
||||
if (typeof str !== 'string') {
|
||||
throw new $TypeError('Assertion failed: `S` must be a boxed string object');
|
||||
}
|
||||
if (!IsPropertyKey(P)) {
|
||||
throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
|
||||
}
|
||||
if (Type(P) !== 'String') {
|
||||
if (typeof P !== 'string') {
|
||||
return void undefined;
|
||||
}
|
||||
var index = CanonicalNumericIndexString(P);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue