fix(core): Use safe primordials wrappers (#18687)

This commit is contained in:
Kenta Moriuchi 2023-04-15 05:23:28 +09:00 committed by GitHub
parent 136dce67ce
commit f086ec57b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 83 additions and 60 deletions

View file

@ -60,7 +60,7 @@ const {
ReflectOwnKeys,
RegExpPrototypeTest,
SafeRegExp,
Set,
SafeSet,
SetPrototypeEntries,
SetPrototypeForEach,
SetPrototypeKeys,
@ -752,7 +752,7 @@ function createDictionaryConverter(name, ...dictionaries) {
// https://heycam.github.io/webidl/#es-enumeration
function createEnumConverter(name, values) {
const E = new Set(values);
const E = new SafeSet(values);
return function (V, opts = {}) {
const S = String(V);