Skip to content

Commit 3fcba75

Browse files
authored
Remove process unsupported section (#25284)
* remove process unsupported section * fixup formatting
1 parent d9a4925 commit 3fcba75

File tree

1 file changed

+3
-17
lines changed
  • src/content/docs/workers/runtime-apis/nodejs

1 file changed

+3
-17
lines changed

src/content/docs/workers/runtime-apis/nodejs/process.mdx

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,16 @@ same isolate. Specifically, it would cause inconsistency with the `process.env`
5959
accessed via named imports.
6060
6161
```js
62-
import * as process from 'node:process';
63-
import { env } from 'node:process';
62+
import * as process from "node:process";
63+
import { env } from "node:process";
6464

6565
process.env === env; // true! they are the same object
6666
process.env = {}; // replace the object! Do not do this!
6767
process.env === env; // false! they are no longer the same object
6868

6969
// From this point forward, any changes to process.env will not be reflected in env,
7070
// and vice versa!
71+
```
7172
7273
## `process.nextTick()`
7374
@@ -102,18 +103,3 @@ This ensures compatibility with inspector and structured logging outputs.
102103
## Hrtime
103104
104105
While [`process.hrtime`](https://nodejs.org/docs/latest/api/process.html#processhrtimetime) high-resolution timer is available, it provides an inaccurate timer for compatibility only.
105-
106-
## Unsupported Features
107-
108-
The following `process` properties are currently entirely unsupported and return `undefined`: `binding`, `channel`, `connected`, `debugPort`, `dlopen`,
109-
`exitCode`, `finalization`, `getActiveResourcesInfo`, `hasUncaughtExceptionCaptureCallback`, `kill`, `memoryUsage`, `noDeprecation`, `permission`,
110-
`ref`, `release`, `report`, `resourceUsage`, `send`, `setUncaughtExceptionCaptureCallback`, `sourceMapsEnabled`, `threadCpuUsage`,
111-
`throwDeprecation`, `traceDeprecation`, `unref`.
112-
113-
These unimplemented features may be feature-detected via conditional gating patterns like:
114-
115-
```js
116-
if (process.dlopen) {
117-
// use dlopen when available
118-
}
119-
```

0 commit comments

Comments
 (0)