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/StringToNumber.js
generated
vendored
6
node_modules/es-abstract/2023/StringToNumber.js
generated
vendored
|
|
@ -4,7 +4,7 @@ var GetIntrinsic = require('get-intrinsic');
|
|||
|
||||
var $Number = GetIntrinsic('%Number%');
|
||||
var $RegExp = GetIntrinsic('%RegExp%');
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
var $parseInteger = GetIntrinsic('%parseInt%');
|
||||
|
||||
var callBound = require('call-bind/callBound');
|
||||
|
|
@ -20,12 +20,10 @@ var hasNonWS = regexTester(nonWSregex);
|
|||
|
||||
var $trim = require('string.prototype.trim');
|
||||
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://262.ecma-international.org/13.0/#sec-stringtonumber
|
||||
|
||||
module.exports = function StringToNumber(argument) {
|
||||
if (Type(argument) !== 'String') {
|
||||
if (typeof argument !== 'string') {
|
||||
throw new $TypeError('Assertion failed: `argument` is not a String');
|
||||
}
|
||||
if (isBinary(argument)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue