Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2024-09-16 17:29:58 +00:00
parent 1afca056e3
commit 6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions

View file

@ -3,7 +3,7 @@
var GetIntrinsic = require('get-intrinsic');
var callBound = require('call-bind/callBound');
var $TypeError = GetIntrinsic('%TypeError%');
var $TypeError = require('es-errors/type');
var $RegExpPrototype = GetIntrinsic('%RegExp.prototype%');
var SameValue = require('./SameValue');
@ -17,7 +17,7 @@ var getFlags = require('regexp.prototype.flags');
// https://262.ecma-international.org/13.0/#sec-regexphasflag
module.exports = function RegExpHasFlag(R, codeUnit) {
if (Type(codeUnit) !== 'String' || codeUnit.length !== 1) {
if (typeof codeUnit !== 'string' || codeUnit.length !== 1) {
throw new $TypeError('Assertion failed: `string` must be a code unit - a String of length 1');
}