From f086ec57b453fc0af763564eb80fea4b5b7f7296 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Sat, 15 Apr 2023 05:23:28 +0900 Subject: fix(core): Use safe primordials wrappers (#18687) --- ext/webidl/00_webidl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/webidl/00_webidl.js') diff --git a/ext/webidl/00_webidl.js b/ext/webidl/00_webidl.js index 5f4a69240..4398609e5 100644 --- a/ext/webidl/00_webidl.js +++ b/ext/webidl/00_webidl.js @@ -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); -- cgit v1.2.3