mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
fix(core): Use safe primordials wrappers (#18687)
This commit is contained in:
parent
136dce67ce
commit
f086ec57b4
22 changed files with 83 additions and 60 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue