Skip to content

Commit 8002996

Browse files
committed
remove stdout usages
1 parent c094345 commit 8002996

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/api/process.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,7 @@ This function remove the register of the object from the finalization
20422042
registry, so the callback will not be called anymore.
20432043
20442044
```cjs
2045-
const { finalization, stdout } = require('node:process');
2045+
const { finalization } = require('node:process');
20462046

20472047
// Please make sure that the function passed to finalization.register()
20482048
// does not create a closure around unnecessary objects.
@@ -2058,7 +2058,6 @@ function setup() {
20582058
const myDisposableObject = {
20592059
dispose() {
20602060
// Free your resources synchronously
2061-
stdout.write('disposed.\n');
20622061
},
20632062
};
20642063

@@ -2074,7 +2073,7 @@ setup();
20742073
```
20752074
20762075
```mjs
2077-
import { finalization, stdout } from 'node:process';
2076+
import { finalization } from 'node:process';
20782077

20792078
// Please make sure that the function passed to finalization.register()
20802079
// does not create a closure around unnecessary objects.
@@ -2090,7 +2089,6 @@ function setup() {
20902089
const myDisposableObject = {
20912090
dispose() {
20922091
// Free your resources synchronously
2093-
stdout.write('disposed.\n');
20942092
},
20952093
};
20962094

0 commit comments

Comments
 (0)