node_modules/es-abstract/2022/WordCharacters.js in immosquare-cleaner-0.1.32 vs node_modules/es-abstract/2022/WordCharacters.js in immosquare-cleaner-0.1.38

- old
+ new

@@ -1,26 +1,23 @@ 'use strict'; -var GetIntrinsic = require('get-intrinsic'); +var $TypeError = require('es-errors/type'); -var $TypeError = GetIntrinsic('%TypeError%'); - var callBound = require('call-bind/callBound'); var $indexOf = callBound('String.prototype.indexOf', true); var Canonicalize = require('./Canonicalize'); -var Type = require('./Type'); -var caseFolding = require('../helpers/caseFolding'); +var caseFolding = require('../helpers/caseFolding.json'); var forEach = require('../helpers/forEach'); var OwnPropertyKeys = require('../helpers/OwnPropertyKeys'); var A = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; // step 1 // https://262.ecma-international.org/8.0/#sec-runtime-semantics-wordcharacters-abstract-operation module.exports = function WordCharacters(IgnoreCase, Unicode) { - if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + if (typeof IgnoreCase !== 'boolean' || typeof Unicode !== 'boolean') { throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); } var U = ''; forEach(OwnPropertyKeys(caseFolding.C), function (c) {