From 8a54fa3f405d0577aaaa7a48619501abfab95ec5 Mon Sep 17 00:00:00 2001 From: Yash Ladha <18033231+yashLadha@users.noreply.github.com> Date: Thu, 3 Feb 2022 18:00:36 +0530 Subject: [PATCH] async_hooks: fix imports in context example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added imports for packages that is mentioned in the example of async_hooks context example. PR-URL: https://github.com/nodejs/node/pull/39229 Reviewed-By: James M Snell Reviewed-By: Michaël Zasso Reviewed-By: Gerhard Stöbich --- 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 b74d52c5f8bcc5..54bfbaccdaef29 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -433,6 +433,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;