Files
node/doc/api
Shelley Vohr c636b05c9e trace_events: fix abort when Node.js does not own the V8 platform
Requiring `node:trace_events` and calling `createTracing()` aborted
the process, and `getEnabledCategories()` dereferenced a null pointer,
when Node.js runs on an embedder's own platform
(`kNoInitializeNodeV8Platform`): no `tracing::Agent` exists then, and
`lib/trace_events.js` only checked the compile-time `hasTracing` flag
and `ownsProcessState` before handing the null agent to the binding.

Have the binding report whether an agent exists and throw the existing
`ERR_TRACE_EVENTS_UNAVAILABLE` when it does not, as for a
`--without-v8-platform` build.

Refs: https://github.com/nodejs/node/pull/19803
Signed-off-by: Shelley Vohr <shelley.vohr@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65954
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2026-09-18 15:23:28 +00:00
..
2026-09-16 20:13:19 +02:00
2026-09-16 22:22:28 +00:00
2026-09-03 11:40:52 +02:00
2026-09-16 20:13:19 +02:00
2026-09-15 08:33:52 +00:00
2026-09-16 20:13:19 +02:00
2026-09-03 15:37:21 +00:00
2025-12-16 20:31:28 +00:00
2026-08-22 03:49:24 +00:00
2026-09-11 13:15:27 -04:00
2026-08-03 11:44:23 +00:00
2026-09-09 18:04:31 +02:00
2026-09-15 02:31:45 +00:00
2026-09-16 20:13:19 +02:00
2026-09-11 14:57:08 +00:00