MCPcopy Index your code
hub / github.com/nodejs/node / getBuiltinModuleWrapForEmbedder

Function getBuiltinModuleWrapForEmbedder

lib/internal/modules/esm/utils.js:236–238  ·  view source on GitHub ↗

* Loads the built-in and wraps it in a ModuleWrap for embedder ESM. * @param {string} specifier * @returns {ModuleWrap}

(specifier)

Source from the content-addressed store, hash-verified

234 * @returns {ModuleWrap}
235 */
236function getBuiltinModuleWrapForEmbedder(specifier) {
237 return loadBuiltinModuleForEmbedder(specifier).getESMFacade();
238}
239
240/**
241 * Get the built-in module dynamically for embedder ESM.

Callers 2

compileSourceTextModuleFunction · 0.85

Calls 2

getESMFacadeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…