Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
9
node_modules/es-abstract/2017/SplitMatch.js
generated
vendored
9
node_modules/es-abstract/2017/SplitMatch.js
generated
vendored
|
|
@ -1,11 +1,8 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
var callBound = require('call-bind/callBound');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
|
||||
var Type = require('./Type');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var isInteger = require('../helpers/isInteger');
|
||||
|
||||
|
|
@ -14,13 +11,13 @@ var $charAt = callBound('String.prototype.charAt');
|
|||
// https://262.ecma-international.org/6.0/#sec-splitmatch
|
||||
|
||||
module.exports = function SplitMatch(S, q, R) {
|
||||
if (Type(S) !== 'String') {
|
||||
if (typeof S !== 'string') {
|
||||
throw new $TypeError('Assertion failed: `S` must be a String');
|
||||
}
|
||||
if (!isInteger(q)) {
|
||||
throw new $TypeError('Assertion failed: `q` must be an integer');
|
||||
}
|
||||
if (Type(R) !== 'String') {
|
||||
if (typeof R !== 'string') {
|
||||
throw new $TypeError('Assertion failed: `R` must be a String');
|
||||
}
|
||||
var r = R.length;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue