diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-04-15 05:23:28 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 22:23:28 +0200 |
commit | f086ec57b453fc0af763564eb80fea4b5b7f7296 (patch) | |
tree | 8c7800d918751893e4011eb86f23e8f687d4139b /runtime/js/10_permissions.js | |
parent | 136dce67cec749dce5989ea29e88359ef79a0045 (diff) |
fix(core): Use safe primordials wrappers (#18687)
Diffstat (limited to 'runtime/js/10_permissions.js')
-rw-r--r-- | runtime/js/10_permissions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/10_permissions.js b/runtime/js/10_permissions.js index 20894beb0..79cbb7632 100644 --- a/runtime/js/10_permissions.js +++ b/runtime/js/10_permissions.js @@ -10,7 +10,6 @@ const { ArrayPrototypeIncludes, ArrayPrototypeMap, ArrayPrototypeSlice, - Map, MapPrototypeGet, MapPrototypeHas, MapPrototypeSet, @@ -19,6 +18,7 @@ const { PromiseReject, ReflectHas, SafeArrayIterator, + SafeMap, Symbol, SymbolFor, TypeError, @@ -113,7 +113,7 @@ class PermissionStatus extends EventTarget { } /** @type {Map<string, StatusCacheValue>} */ -const statusCache = new Map(); +const statusCache = new SafeMap(); /** * @param {Deno.PermissionDescriptor} desc |