From a9b9fe60ac8605e9dde90a9e7439895317622a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Louren=C3=A7o?= Date: Mon, 24 Jun 2024 20:13:50 -0300 Subject: [PATCH] remove stdout usages --- doc/api/process.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index c8a18f2132966e..8ddf2a184a1ac3 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2026,7 +2026,7 @@ This function remove the register of the object from the finalization registry, so the callback will not be called anymore. ```cjs -const { finalization, stdout } = require('node:process'); +const { finalization } = require('node:process'); // Please make sure that the function passed to finalization.register() // does not create a closure around unnecessary objects. @@ -2042,7 +2042,6 @@ function setup() { const myDisposableObject = { dispose() { // Free your resources synchronously - stdout.write('disposed.\n'); }, }; @@ -2058,7 +2057,7 @@ setup(); ``` ```mjs -import { finalization, stdout } from 'node:process'; +import { finalization } from 'node:process'; // Please make sure that the function passed to finalization.register() // does not create a closure around unnecessary objects. @@ -2074,7 +2073,6 @@ function setup() { const myDisposableObject = { dispose() { // Free your resources synchronously - stdout.write('disposed.\n'); }, };