k94314517
2025-07-11 ce920867ae3a55d17ce5caf30961b6d51e2a7078
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict';
var globalThis = require('../internals/global-this');
var IS_NODE = require('../internals/environment-is-node');
 
module.exports = function (name) {
  if (IS_NODE) {
    try {
      return globalThis.process.getBuiltinModule(name);
    } catch (error) { /* empty */ }
    try {
      // eslint-disable-next-line no-new-func -- safe
      return Function('return require("' + name + '")')();
    } catch (error) { /* empty */ }
  }
};