Skip to content

Commit 9570644

Browse files
jasnelltargos
authored andcommitted
lib: cosmetic change to builtinLibs list for maintainability
This is a largely cosmetic change suggested for easier maintainability of the builtinLibs list. While the QUIC PR no longer modifies this list, the original version of the PR did and the fact that all of the entries were bundled up into the same lines meant that adding one forced a larger change to all. With this PR, when we want to add a new built-in, it won't impact any of the others. PR-URL: #33106 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 6b1e235 commit 9570644

File tree

1 file changed

+33
-5
lines changed

1 file changed

+33
-5
lines changed

lib/internal/modules/cjs/helpers.js

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,39 @@ function stripBOM(content) {
110110
}
111111

112112
const builtinLibs = [
113-
'assert', 'async_hooks', 'buffer', 'child_process', 'cluster', 'crypto',
114-
'dgram', 'dns', 'domain', 'events', 'fs', 'http', 'http2', 'https', 'net',
115-
'os', 'path', 'perf_hooks', 'punycode', 'querystring', 'readline', 'repl',
116-
'stream', 'string_decoder', 'tls', 'trace_events', 'tty', 'url', 'util',
117-
'v8', 'vm', 'worker_threads', 'zlib'
113+
'assert',
114+
'async_hooks',
115+
'buffer',
116+
'child_process',
117+
'cluster',
118+
'crypto',
119+
'dgram',
120+
'dns',
121+
'domain',
122+
'events',
123+
'fs',
124+
'http',
125+
'http2',
126+
'https',
127+
'net',
128+
'os',
129+
'path',
130+
'perf_hooks',
131+
'punycode',
132+
'querystring',
133+
'readline',
134+
'repl',
135+
'stream',
136+
'string_decoder',
137+
'tls',
138+
'trace_events',
139+
'tty',
140+
'url',
141+
'util',
142+
'v8',
143+
'vm',
144+
'worker_threads',
145+
'zlib',
118146
];
119147

120148
if (internalBinding('config').experimentalWasi) {

0 commit comments

Comments
 (0)