* Load a public built-in module. ID may or may not be prefixed by `node:` and * will be normalized. * @param {string} id ID of the built-in to be loaded. * @returns {object|undefined} exports of the built-in. Undefined if the built-in * does not exist.
(id)
| 399 | * does not exist. |
| 400 | */ |
| 401 | function getBuiltinModule(id) { |
| 402 | validateString(id, 'id'); |
| 403 | const normalizedId = BuiltinModule.normalizeRequirableId(id); |
| 404 | return normalizedId ? require(normalizedId) : undefined; |
| 405 | } |
| 406 | |
| 407 | /** @type {import('internal/util/types')} */ |
| 408 | let _TYPES = null; |
nothing calls this directly
no test coverage detected
searching dependent graphs…