v1.0 with SW PWA enabled

This commit is contained in:
Blomios
2026-01-01 17:40:53 +01:00
parent 1c0e22aac1
commit 3c8bebb2ad
29775 changed files with 2197201 additions and 119080 deletions

View File

@ -0,0 +1,29 @@
'use strict';
var $TypeError = require('es-errors/type');
var HasEitherUnicodeFlag = require('./HasEitherUnicodeFlag');
var isRegExpRecord = require('../helpers/records/regexp-record');
var CharSet = require('../helpers/CharSet');
// https://262.ecma-international.org/15.0/#sec-allcharacters
module.exports = function AllCharacters(rer) {
if (!isRegExpRecord(rer)) {
throw new $TypeError('Assertion failed: `rer` must be a RegExp Record');
}
if (rer['[[UnicodeSets]]'] && rer['[[IgnoreCase]]']) { // step 1
// 1. Return the CharSet containing all Unicode code points _c_ that do not have a <a href="https://www.unicode.org/reports/tr44/#Simple_Case_Folding">Simple Case Folding</a> mapping (that is, scf(_c_)=_c_).
return CharSet.getNonSimpleCaseFoldingCodePoints(); // step 1.a
} else if (HasEitherUnicodeFlag(rer)) { // step 2
// 1. Return the CharSet containing all code point values.
return CharSet.getCodePoints(); // step 3.a
// eslint-disable-next-line no-else-return
} else { // step 3
// 1. Return the CharSet containing all code unit values.
return CharSet.getCodeUnits(); // step 3.a
}
};