Skip to content

Commit f7e2902

Browse files
gurgundayaduh95
authored andcommitted
lib: use Map primordial for ActiveAsyncContextFrame
PR-URL: #57670 Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]>
1 parent 3eb6b81 commit f7e2902

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/internal/async_context_frame.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const {
44
ObjectSetPrototypeOf,
5+
SafeMap,
56
} = primordials;
67

78
const {
@@ -11,7 +12,7 @@ const {
1112

1213
let enabled_;
1314

14-
class ActiveAsyncContextFrame extends Map {
15+
class ActiveAsyncContextFrame extends SafeMap {
1516
static get enabled() {
1617
return true;
1718
}
@@ -50,7 +51,7 @@ function checkEnabled() {
5051
return enabled;
5152
}
5253

53-
class InactiveAsyncContextFrame extends Map {
54+
class InactiveAsyncContextFrame extends SafeMap {
5455
static get enabled() {
5556
enabled_ ??= checkEnabled();
5657
return enabled_;

0 commit comments

Comments
 (0)