summaryrefslogtreecommitdiff
path: root/core/01_core.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-04-15 05:23:28 +0900
committerGitHub <noreply@github.com>2023-04-14 22:23:28 +0200
commitf086ec57b453fc0af763564eb80fea4b5b7f7296 (patch)
tree8c7800d918751893e4011eb86f23e8f687d4139b /core/01_core.js
parent136dce67cec749dce5989ea29e88359ef79a0045 (diff)
fix(core): Use safe primordials wrappers (#18687)
Diffstat (limited to 'core/01_core.js')
-rw-r--r--core/01_core.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/01_core.js b/core/01_core.js
index 6231c0766..a2cd9e14b 100644
--- a/core/01_core.js
+++ b/core/01_core.js
@@ -9,7 +9,6 @@
ArrayPrototypePush,
Error,
ErrorCaptureStackTrace,
- Map,
MapPrototypeDelete,
MapPrototypeGet,
MapPrototypeHas,
@@ -22,6 +21,7 @@
RangeError,
ReferenceError,
SafeArrayIterator,
+ SafeMap,
SafePromisePrototypeFinally,
setQueueMicrotask,
StringPrototypeSlice,
@@ -65,7 +65,7 @@
registerErrorClass("URIError", URIError);
let nextPromiseId = 1;
- const promiseMap = new Map();
+ const promiseMap = new SafeMap();
const RING_SIZE = 4 * 1024;
const NO_PROMISE = null; // Alias to null is faster than plain nulls
const promiseRing = ArrayPrototypeFill(new Array(RING_SIZE), NO_PROMISE);
@@ -74,7 +74,7 @@
const promiseIdSymbol = SymbolFor("Deno.core.internalPromiseId");
let opCallTracingEnabled = false;
- const opCallTraces = new Map();
+ const opCallTraces = new SafeMap();
function enableOpCallTracing() {
opCallTracingEnabled = true;