diff options
Diffstat (limited to 'lib/internal/module.js')
-rw-r--r-- | lib/internal/module.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/internal/module.js b/lib/internal/module.js index a6da58a8d7..c5a26a0419 100644 --- a/lib/internal/module.js +++ b/lib/internal/module.js @@ -78,15 +78,11 @@ function stripShebang(content) { const builtinLibs = [ 'assert', 'async_hooks', 'buffer', 'child_process', 'cluster', 'crypto', - 'dgram', 'dns', 'domain', 'events', 'fs', 'http', 'https', 'net', + 'dgram', 'dns', 'domain', 'events', 'fs', 'http', 'http2', 'https', 'net', 'os', 'path', 'perf_hooks', 'punycode', 'querystring', 'readline', 'repl', 'stream', 'string_decoder', 'tls', 'tty', 'url', 'util', 'v8', 'vm', 'zlib' ]; -const { exposeHTTP2 } = process.binding('config'); -if (exposeHTTP2) - builtinLibs.push('http2'); - function addBuiltinLibsToObject(object) { // Make built-in modules available directly (loaded lazily). builtinLibs.forEach((name) => { |