From e8d21764600d601e0729354c4b07b2bd7e043439 Mon Sep 17 00:00:00 2001 From: Yash Ladha Date: Fri, 2 Jul 2021 07:13:49 +0530 Subject: [PATCH] async_hooks: fix imports in context example Added imports for packages that is mentioned in the example of async_hooks context example. --- doc/api/async_hooks.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index 516199f9391dae..6a0258b539524e 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -428,6 +428,9 @@ callback to `listen()` will look like. The output formatting is slightly more elaborate to make calling context easier to see. ```js +const async_hooks = require('async_hooks'); +const fs = require('fs'); +const net = require('net'); const { fd } = process.stdout; let indent = 0;