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

Function exposeNamespace

lib/internal/util.js:621–629  ·  view source on GitHub ↗
(target, name, namespaceObject)

Source from the content-addressed store, hash-verified

619
620// https://heycam.github.io/webidl/#es-namespaces
621function exposeNamespace(target, name, namespaceObject) {
622 ObjectDefineProperty(target, name, {
623 __proto__: null,
624 writable: true,
625 enumerable: false,
626 configurable: true,
627 value: namespaceObject,
628 });
629}
630
631function defineReplaceableLazyAttribute(target, id, keys, writable = true, check) {
632 let mod;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected