Commit 0cc50e68eaa for nodejs
commit 0cc50e68eaa2006d504740307b8afdc8488f130e
Author: Richie McColl <richie.mccoll@hotmail.co.uk>
Date: Thu Dec 3 11:41:21 2026 +0200
doc: add node:bench to mandatory prefix list
`node:bench` and `node:bench/reporters` can only be loaded with the
`node:` scheme, but were missing from the list of built-in modules
that require the prefix.
Signed-off-by: Richie McColl <richie.mccoll@hotmail.co.uk>
PR-URL: https://github.com/nodejs/node/pull/67933
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jordan Harband <ljharb@gmail.com>
diff --git a/doc/api/modules.md b/doc/api/modules.md
index 81b2f06e17c..539b19d3ac3 100644
--- a/doc/api/modules.md
+++ b/doc/api/modules.md
@@ -548,6 +548,8 @@ When being loaded by `require()`, some built-in modules must be requested with t
modules from having a conflict with user land packages that already have
taken the name. Currently the built-in modules that requires the `node:` prefix are:
+* [`node:bench`][]
+* [`node:bench/reporters`][]
* [`node:ffi`][]
* [`node:sea`][]
* [`node:sqlite`][]
@@ -1304,6 +1306,8 @@ This section was moved to
[`module.registerHooks()`]: module.md#moduleregisterhooksoptions
[`module` core module]: module.md
[`module` object]: #the-module-object
+[`node:bench/reporters`]: bench.md#benchmark-reporters
+[`node:bench`]: bench.md
[`node:ffi`]: ffi.md
[`node:sea`]: single-executable-applications.md#single-executable-application-api
[`node:sqlite`]: sqlite.md