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/2015/StringGetIndexProperty.js
generated
vendored
6
node_modules/es-abstract/2015/StringGetIndexProperty.js
generated
vendored
|
|
@ -1,9 +1,8 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
var callBound = require('call-bind/callBound');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var $charAt = callBound('String.prototype.charAt');
|
||||
|
||||
|
|
@ -14,7 +13,6 @@ var unbox = require('unbox-primitive');
|
|||
var CanonicalNumericIndexString = require('./CanonicalNumericIndexString');
|
||||
var IsInteger = require('./IsInteger');
|
||||
var IsPropertyKey = require('./IsPropertyKey');
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://262.ecma-international.org/6.0/#sec-stringgetindexproperty
|
||||
|
||||
|
|
@ -26,7 +24,7 @@ module.exports = function StringGetIndexProperty(S, P) {
|
|||
throw new $TypeError('Assertion failed: `P` must be a Property Key');
|
||||
}
|
||||
|
||||
if (Type(P) !== 'String') {
|
||||
if (typeof P !== 'string') {
|
||||
return void undefined;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue