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/CreateRegExpStringIterator.js
generated
vendored
8
node_modules/es-abstract/2023/CreateRegExpStringIterator.js
generated
vendored
|
|
@ -3,7 +3,7 @@
|
|||
var GetIntrinsic = require('get-intrinsic');
|
||||
var hasSymbols = require('has-symbols')();
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
var IteratorPrototype = GetIntrinsic('%IteratorPrototype%', true);
|
||||
|
||||
var AdvanceStringIndex = require('./AdvanceStringIndex');
|
||||
|
|
@ -21,13 +21,13 @@ var SLOT = require('internal-slot');
|
|||
var setToStringTag = require('es-set-tostringtag');
|
||||
|
||||
var RegExpStringIterator = function RegExpStringIterator(R, S, global, fullUnicode) {
|
||||
if (Type(S) !== 'String') {
|
||||
if (typeof S !== 'string') {
|
||||
throw new $TypeError('`S` must be a string');
|
||||
}
|
||||
if (Type(global) !== 'Boolean') {
|
||||
if (typeof global !== 'boolean') {
|
||||
throw new $TypeError('`global` must be a boolean');
|
||||
}
|
||||
if (Type(fullUnicode) !== 'Boolean') {
|
||||
if (typeof fullUnicode !== 'boolean') {
|
||||
throw new $TypeError('`fullUnicode` must be a boolean');
|
||||
}
|
||||
SLOT.set(this, '[[IteratingRegExp]]', R);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue