Skip to content

Commit 37f9d83

Browse files
RafaelGSSsimonebtargos
authored
update(asyncWrapProviders): add __proto__ as null
Co-authored-by: Simone Busoli <[email protected]> Co-authored-by: Michaël Zasso <[email protected]>
1 parent 4eb4596 commit 37f9d83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/api/async_hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ added: REPLACEME
767767
* Returns: A map of provider types to the corresponding numeric id.
768768
This map contains all the event types that might be emitted by the `async_hooks.init()` event.
769769
770-
This feature suppress the deprecated usage of `process.binding('async_wrap').Providers`.
770+
This feature suppresses the deprecated usage of `process.binding('async_wrap').Providers`.
771771
772772
## Promise execution tracking
773773

lib/async_hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ module.exports = {
354354
executionAsyncId,
355355
triggerAsyncId,
356356
executionAsyncResource,
357-
asyncWrapProviders: ObjectFreeze({ ...asyncWrap.Providers }),
357+
asyncWrapProviders: ObjectFreeze({ __proto__: null, ...asyncWrap.Providers }),
358358
// Embedder API
359359
AsyncResource,
360360
};

0 commit comments

Comments
 (0)