Skip to content

Commit 9cfeec0

Browse files
committed
remove process unsupported section
1 parent 824f50f commit 9cfeec0

File tree

1 file changed

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

1 file changed

+2
-17
lines changed

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

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ were set previously and will cause unexpected behavior for other Workers running
5858
same isolate. Specifically, it would cause inconsistency with the `process.env` object when
5959
accessed via named imports.
6060
61-
```js
61+
````js
6262
import * as process from 'node:process';
6363
import { env } from 'node:process';
6464
@@ -82,7 +82,7 @@ console.log(env["FOO"]); // Prints: bar
8282
nextTick(() => {
8383
console.log("next tick");
8484
});
85-
```
85+
````
8686

8787
## Stdio
8888

@@ -102,18 +102,3 @@ This ensures compatibility with inspector and structured logging outputs.
102102
## Hrtime
103103

104104
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)