Skip to main content

nodejs/
core_arity.rs

1//! `name` and `length` of the core-module functions.
2//!
3//! GENERATED by `cargo run --bin gen-core-arity` from v26.12.1 — do not edit by hand.
4//! See `src/bin/gen_core_arity.rs` for what is in the table.
5
6/// `(key, name, length)` of each function a core module exports, sorted by
7/// key. The key is the [`crate::host::JsObj::Builtin`] spelling,
8/// `<namespace>.<member>` (`fs.readFileSync`, `EventEmitter.once`).
9pub const CORE_ARITY: &[(&str, &str, u32)] = &[
10    ("EventEmitter.addAbortListener", "addAbortListener", 2),
11    ("EventEmitter.getEventListeners", "getEventListeners", 2),
12    ("EventEmitter.getMaxListeners", "getMaxListeners", 1),
13    ("EventEmitter.init", "", 1),
14    ("EventEmitter.listenerCount", "listenerCount", 2),
15    ("EventEmitter.on", "on", 2),
16    ("EventEmitter.once", "once", 2),
17    ("EventEmitter.setMaxListeners", "", 0),
18    ("Stream._isArrayBufferView", "isView", 1),
19    ("Stream._isUint8Array", "isUint8Array", 1),
20    ("Stream._uint8ArrayToBuffer", "_uint8ArrayToBuffer", 1),
21    ("Stream.addAbortSignal", "addAbortSignal", 2),
22    ("Stream.compose", "compose", 0),
23    ("Stream.destroy", "destroyer", 2),
24    ("Stream.duplexPair", "duplexPair", 1),
25    ("Stream.finished", "eos", 3),
26    (
27        "Stream.getDefaultHighWaterMark",
28        "getDefaultHighWaterMark",
29        1,
30    ),
31    ("Stream.isDestroyed", "isDestroyed", 1),
32    ("Stream.isDisturbed", "isDisturbed", 1),
33    ("Stream.isErrored", "isErrored", 1),
34    ("Stream.isReadable", "isReadable", 1),
35    ("Stream.isWritable", "isWritable", 1),
36    ("Stream.pipeline", "pipeline", 0),
37    (
38        "Stream.setDefaultHighWaterMark",
39        "setDefaultHighWaterMark",
40        2,
41    ),
42    ("assert.deepEqual", "deepEqual", 2),
43    ("assert.deepStrictEqual", "deepStrictEqual", 2),
44    ("assert.doesNotMatch", "doesNotMatch", 2),
45    ("assert.doesNotReject", "doesNotReject", 1),
46    ("assert.doesNotThrow", "doesNotThrow", 1),
47    ("assert.equal", "equal", 2),
48    ("assert.fail", "fail", 1),
49    ("assert.ifError", "ifError", 1),
50    ("assert.match", "match", 2),
51    ("assert.notDeepEqual", "notDeepEqual", 2),
52    ("assert.notDeepStrictEqual", "notDeepStrictEqual", 2),
53    ("assert.notEqual", "notEqual", 2),
54    ("assert.notStrictEqual", "notStrictEqual", 2),
55    ("assert.ok", "ok", 0),
56    ("assert.partialDeepStrictEqual", "partialDeepStrictEqual", 2),
57    ("assert.rejects", "rejects", 1),
58    ("assert.strict", "strict", 0),
59    ("assert.strictEqual", "strictEqual", 2),
60    ("assert.throws", "throws", 1),
61    ("async_hooks.createHook", "createHook", 1),
62    ("async_hooks.executionAsyncId", "executionAsyncId", 0),
63    (
64        "async_hooks.executionAsyncResource",
65        "executionAsyncResource",
66        0,
67    ),
68    ("async_hooks.triggerAsyncId", "triggerAsyncId", 0),
69    ("buffer.atob", "atob", 1),
70    ("buffer.btoa", "btoa", 1),
71    ("buffer.isAscii", "isAscii", 1),
72    ("buffer.isLatin1", "isLatin1", 1),
73    ("buffer.isUtf8", "isUtf8", 1),
74    ("buffer.resolveObjectURL", "resolveObjectURL", 1),
75    ("buffer.transcode", "transcode", 3),
76    ("child_process._forkChild", "_forkChild", 2),
77    ("child_process.exec", "exec", 3),
78    ("child_process.execFile", "execFile", 4),
79    ("child_process.execFileSync", "execFileSync", 3),
80    ("child_process.execSync", "execSync", 2),
81    ("child_process.fork", "fork", 1),
82    ("child_process.spawn", "spawn", 3),
83    ("child_process.spawnSync", "spawnSync", 3),
84    ("cluster.disconnect", "", 1),
85    ("cluster.fork", "", 1),
86    ("cluster.setupMaster", "", 1),
87    ("cluster.setupPrimary", "", 1),
88    ("console._stderrErrorHandler", "", 1),
89    ("console._stdoutErrorHandler", "", 1),
90    ("console.assert", "assert", 0),
91    ("console.clear", "clear", 0),
92    ("console.context", "context", 1),
93    ("console.count", "count", 0),
94    ("console.countReset", "countReset", 0),
95    ("console.createTask", "createTask", 0),
96    ("console.debug", "debug", 0),
97    ("console.dir", "dir", 0),
98    ("console.dirxml", "dirxml", 0),
99    ("console.error", "error", 0),
100    ("console.group", "group", 0),
101    ("console.groupCollapsed", "groupCollapsed", 0),
102    ("console.groupEnd", "groupEnd", 0),
103    ("console.info", "info", 0),
104    ("console.log", "log", 0),
105    ("console.profile", "profile", 0),
106    ("console.profileEnd", "profileEnd", 0),
107    ("console.table", "table", 0),
108    ("console.time", "time", 0),
109    ("console.timeEnd", "timeEnd", 0),
110    ("console.timeLog", "timeLog", 0),
111    ("console.timeStamp", "timeStamp", 0),
112    ("console.trace", "trace", 0),
113    ("console.warn", "warn", 0),
114    ("crypto.argon2", "argon2", 3),
115    ("crypto.argon2Sync", "argon2Sync", 2),
116    ("crypto.checkPrime", "checkPrime", 1),
117    ("crypto.checkPrimeSync", "checkPrimeSync", 1),
118    ("crypto.createCipheriv", "createCipheriv", 4),
119    ("crypto.createDecipheriv", "createDecipheriv", 4),
120    ("crypto.createDiffieHellman", "createDiffieHellman", 4),
121    (
122        "crypto.createDiffieHellmanGroup",
123        "createDiffieHellmanGroup",
124        1,
125    ),
126    ("crypto.createECDH", "createECDH", 1),
127    ("crypto.createHash", "createHash", 2),
128    ("crypto.createHmac", "createHmac", 3),
129    ("crypto.createMac", "createMac", 3),
130    ("crypto.createPrivateKey", "createPrivateKey", 1),
131    ("crypto.createPublicKey", "createPublicKey", 1),
132    ("crypto.createSecretKey", "createSecretKey", 2),
133    ("crypto.createSign", "createSign", 2),
134    ("crypto.createVerify", "createVerify", 2),
135    ("crypto.decapsulate", "decapsulate", 3),
136    ("crypto.diffieHellman", "diffieHellman", 2),
137    ("crypto.encapsulate", "encapsulate", 2),
138    ("crypto.generateKey", "generateKey", 3),
139    ("crypto.generateKeyPair", "generateKeyPair", 3),
140    ("crypto.generateKeyPairSync", "generateKeyPairSync", 2),
141    ("crypto.generateKeySync", "generateKeySync", 2),
142    ("crypto.generatePrime", "generatePrime", 3),
143    ("crypto.generatePrimeSync", "generatePrimeSync", 1),
144    ("crypto.getCipherInfo", "getCipherInfo", 1),
145    ("crypto.getCiphers", "", 0),
146    ("crypto.getCurves", "", 0),
147    ("crypto.getDiffieHellman", "createDiffieHellmanGroup", 1),
148    ("crypto.getFips", "getFips", 0),
149    ("crypto.getHashes", "", 0),
150    ("crypto.getMacs", "", 0),
151    ("crypto.getRandomValues", "getRandomValues", 1),
152    ("crypto.hash", "hash", 3),
153    ("crypto.hkdf", "hkdf", 6),
154    ("crypto.hkdfSync", "hkdfSync", 5),
155    ("crypto.parsePKCS12", "parsePKCS12", 1),
156    ("crypto.pbkdf2", "pbkdf2", 6),
157    ("crypto.pbkdf2Sync", "pbkdf2Sync", 5),
158    ("crypto.privateDecrypt", "", 2),
159    ("crypto.privateEncrypt", "", 2),
160    ("crypto.prng", "randomBytes", 2),
161    ("crypto.pseudoRandomBytes", "randomBytes", 2),
162    ("crypto.publicDecrypt", "", 2),
163    ("crypto.publicEncrypt", "", 2),
164    ("crypto.randomBytes", "randomBytes", 2),
165    ("crypto.randomFill", "randomFill", 4),
166    ("crypto.randomFillSync", "randomFillSync", 1),
167    ("crypto.randomInt", "randomInt", 3),
168    ("crypto.randomUUID", "randomUUID", 1),
169    ("crypto.randomUUIDv7", "randomUUIDv7", 1),
170    ("crypto.rng", "randomBytes", 2),
171    ("crypto.scrypt", "scrypt", 4),
172    ("crypto.scryptSync", "scryptSync", 3),
173    ("crypto.secureHeapUsed", "secureHeapUsed", 0),
174    ("crypto.setEngine", "setEngine", 2),
175    ("crypto.setFips", "setFips", 1),
176    ("crypto.sign", "signOneShot", 4),
177    ("crypto.timingSafeEqual", "", 0),
178    ("crypto.verify", "verifyOneShot", 5),
179    ("dgram.createSocket", "createSocket", 2),
180    ("diagnostics_channel.boundedChannel", "boundedChannel", 1),
181    ("diagnostics_channel.channel", "channel", 1),
182    ("diagnostics_channel.hasSubscribers", "hasSubscribers", 1),
183    ("diagnostics_channel.subscribe", "subscribe", 2),
184    ("diagnostics_channel.tracingChannel", "tracingChannel", 1),
185    ("diagnostics_channel.unsubscribe", "unsubscribe", 2),
186    ("dns.getDefaultResultOrder", "getDefaultResultOrder", 0),
187    ("dns.getServers", "bound getServers", 0),
188    ("dns.lookup", "lookup", 3),
189    ("dns.lookupService", "lookupService", 3),
190    ("dns.resolve", "bound resolve", 3),
191    ("dns.resolve4", "bound queryA", 2),
192    ("dns.resolve6", "bound queryAaaa", 2),
193    ("dns.resolveAny", "bound queryAny", 2),
194    ("dns.resolveCaa", "bound queryCaa", 2),
195    ("dns.resolveCname", "bound queryCname", 2),
196    ("dns.resolveMx", "bound queryMx", 2),
197    ("dns.resolveNaptr", "bound queryNaptr", 2),
198    ("dns.resolveNs", "bound queryNs", 2),
199    ("dns.resolvePtr", "bound queryPtr", 2),
200    ("dns.resolveSoa", "bound querySoa", 2),
201    ("dns.resolveSrv", "bound querySrv", 2),
202    ("dns.resolveTlsa", "bound queryTlsa", 2),
203    ("dns.resolveTxt", "bound queryTxt", 2),
204    ("dns.reverse", "bound getHostByAddr", 2),
205    ("dns.setDefaultResultOrder", "setDefaultResultOrder", 1),
206    ("dns.setServers", "defaultResolverSetServers", 1),
207    (
208        "dns/promises.getDefaultResultOrder",
209        "getDefaultResultOrder",
210        0,
211    ),
212    ("dns/promises.getServers", "bound getServers", 0),
213    ("dns/promises.lookup", "lookup", 2),
214    ("dns/promises.lookupService", "lookupService", 2),
215    ("dns/promises.resolve", "bound resolve", 2),
216    ("dns/promises.resolve4", "bound queryA", 2),
217    ("dns/promises.resolve6", "bound queryAaaa", 2),
218    ("dns/promises.resolveAny", "bound queryAny", 2),
219    ("dns/promises.resolveCaa", "bound queryCaa", 2),
220    ("dns/promises.resolveCname", "bound queryCname", 2),
221    ("dns/promises.resolveMx", "bound queryMx", 2),
222    ("dns/promises.resolveNaptr", "bound queryNaptr", 2),
223    ("dns/promises.resolveNs", "bound queryNs", 2),
224    ("dns/promises.resolvePtr", "bound queryPtr", 2),
225    ("dns/promises.resolveSoa", "bound querySoa", 2),
226    ("dns/promises.resolveSrv", "bound querySrv", 2),
227    ("dns/promises.resolveTlsa", "bound queryTlsa", 2),
228    ("dns/promises.resolveTxt", "bound queryTxt", 2),
229    ("dns/promises.reverse", "bound getHostByAddr", 2),
230    (
231        "dns/promises.setDefaultResultOrder",
232        "setDefaultResultOrder",
233        1,
234    ),
235    ("dns/promises.setServers", "defaultResolverSetServers", 1),
236    ("domain.create", "createDomain", 0),
237    ("domain.createDomain", "createDomain", 0),
238    ("fs._toUnixTimestamp", "toUnixTimestamp", 1),
239    ("fs.access", "access", 3),
240    ("fs.accessSync", "accessSync", 2),
241    ("fs.appendFile", "appendFile", 4),
242    ("fs.appendFileSync", "appendFileSync", 3),
243    ("fs.chmod", "chmod", 3),
244    ("fs.chmodSync", "chmodSync", 2),
245    ("fs.chown", "chown", 4),
246    ("fs.chownSync", "chownSync", 3),
247    ("fs.close", "close", 1),
248    ("fs.closeSync", "closeSync", 1),
249    ("fs.copyFile", "copyFile", 4),
250    ("fs.copyFileSync", "copyFileSync", 3),
251    ("fs.cp", "cp", 4),
252    ("fs.cpSync", "cpSync", 3),
253    ("fs.createReadStream", "createReadStream", 2),
254    ("fs.createWriteStream", "createWriteStream", 2),
255    ("fs.exists", "exists", 2),
256    ("fs.existsSync", "existsSync", 1),
257    ("fs.fchmod", "fchmod", 3),
258    ("fs.fchmodSync", "fchmodSync", 2),
259    ("fs.fchown", "fchown", 4),
260    ("fs.fchownSync", "fchownSync", 3),
261    ("fs.fdatasync", "fdatasync", 2),
262    ("fs.fdatasyncSync", "fdatasyncSync", 1),
263    ("fs.fstat", "fstat", 1),
264    ("fs.fstatSync", "fstatSync", 1),
265    ("fs.fsync", "fsync", 2),
266    ("fs.fsyncSync", "fsyncSync", 1),
267    ("fs.ftruncate", "ftruncate", 1),
268    ("fs.ftruncateSync", "ftruncateSync", 1),
269    ("fs.futimes", "futimes", 4),
270    ("fs.futimesSync", "futimesSync", 3),
271    ("fs.glob", "glob", 3),
272    ("fs.globSync", "globSync", 2),
273    ("fs.lchmod", "lchmod", 3),
274    ("fs.lchmodSync", "lchmodSync", 2),
275    ("fs.lchown", "lchown", 4),
276    ("fs.lchownSync", "lchownSync", 3),
277    ("fs.link", "link", 3),
278    ("fs.linkSync", "linkSync", 2),
279    ("fs.lstat", "lstat", 1),
280    ("fs.lstatSync", "lstatSync", 1),
281    ("fs.lutimes", "lutimes", 4),
282    ("fs.lutimesSync", "lutimesSync", 3),
283    ("fs.mkdir", "mkdir", 3),
284    ("fs.mkdirSync", "mkdirSync", 2),
285    ("fs.mkdtemp", "mkdtemp", 3),
286    ("fs.mkdtempDisposableSync", "mkdtempDisposableSync", 2),
287    ("fs.mkdtempSync", "mkdtempSync", 2),
288    ("fs.open", "open", 4),
289    ("fs.openAsBlob", "openAsBlob", 1),
290    ("fs.openAsBlobSync", "openAsBlobSync", 1),
291    ("fs.openSync", "openSync", 3),
292    ("fs.opendir", "opendir", 3),
293    ("fs.opendirSync", "opendirSync", 2),
294    ("fs.read", "read", 6),
295    ("fs.readFile", "readFile", 3),
296    ("fs.readFileSync", "readFileSync", 2),
297    ("fs.readSync", "readSync", 5),
298    ("fs.readdir", "readdir", 3),
299    ("fs.readdirSync", "readdirSync", 2),
300    ("fs.readlink", "readlink", 3),
301    ("fs.readlinkSync", "readlinkSync", 2),
302    ("fs.readv", "readv", 4),
303    ("fs.readvSync", "readvSync", 3),
304    ("fs.realpath", "realpath", 3),
305    ("fs.realpathSync", "realpathSync", 2),
306    ("fs.rename", "rename", 3),
307    ("fs.renameSync", "renameSync", 2),
308    ("fs.rm", "rm", 3),
309    ("fs.rmSync", "rmSync", 2),
310    ("fs.rmdir", "rmdir", 3),
311    ("fs.rmdirSync", "rmdirSync", 2),
312    ("fs.stat", "stat", 1),
313    ("fs.statSync", "statSync", 1),
314    ("fs.statfs", "statfs", 1),
315    ("fs.statfsSync", "statfsSync", 1),
316    ("fs.symlink", "symlink", 4),
317    ("fs.symlinkSync", "symlinkSync", 3),
318    ("fs.truncate", "truncate", 3),
319    ("fs.truncateSync", "truncateSync", 2),
320    ("fs.unlink", "unlink", 2),
321    ("fs.unlinkSync", "unlinkSync", 1),
322    ("fs.unwatchFile", "unwatchFile", 2),
323    ("fs.utimes", "utimes", 4),
324    ("fs.utimesSync", "utimesSync", 3),
325    ("fs.watch", "watch", 3),
326    ("fs.watchFile", "watchFile", 3),
327    ("fs.write", "write", 6),
328    ("fs.writeFile", "writeFile", 4),
329    ("fs.writeFileSync", "writeFileSync", 3),
330    ("fs.writeSync", "writeSync", 5),
331    ("fs.writev", "writev", 4),
332    ("fs.writevSync", "writevSync", 3),
333    ("fs/promises.access", "access", 1),
334    ("fs/promises.appendFile", "appendFile", 3),
335    ("fs/promises.chmod", "chmod", 2),
336    ("fs/promises.chown", "chown", 3),
337    ("fs/promises.copyFile", "copyFile", 3),
338    ("fs/promises.cp", "cp", 3),
339    ("fs/promises.glob", "glob", 2),
340    ("fs/promises.lchmod", "lchmod", 2),
341    ("fs/promises.lchown", "lchown", 3),
342    ("fs/promises.link", "link", 2),
343    ("fs/promises.lstat", "lstat", 1),
344    ("fs/promises.lutimes", "lutimes", 3),
345    ("fs/promises.mkdir", "mkdir", 2),
346    ("fs/promises.mkdtemp", "mkdtemp", 2),
347    ("fs/promises.mkdtempDisposable", "mkdtempDisposable", 2),
348    ("fs/promises.open", "open", 3),
349    ("fs/promises.opendir", "opendir", 3),
350    ("fs/promises.readFile", "readFile", 2),
351    ("fs/promises.readdir", "readdir", 2),
352    ("fs/promises.readlink", "readlink", 2),
353    ("fs/promises.realpath", "realpath", 2),
354    ("fs/promises.rename", "rename", 2),
355    ("fs/promises.rm", "rm", 2),
356    ("fs/promises.rmdir", "rmdir", 2),
357    ("fs/promises.stat", "stat", 1),
358    ("fs/promises.statfs", "statfs", 1),
359    ("fs/promises.symlink", "symlink", 3),
360    ("fs/promises.truncate", "truncate", 1),
361    ("fs/promises.unlink", "unlink", 1),
362    ("fs/promises.utimes", "utimes", 3),
363    ("fs/promises.watch", "_watch", 1),
364    ("fs/promises.writeFile", "writeFile", 3),
365    ("http._connectionListener", "connectionListener", 1),
366    ("http.createServer", "createServer", 2),
367    ("http.get", "get", 3),
368    ("http.isValidHeaderName", "isValidHeaderName", 1),
369    ("http.isValidHeaderValue", "isValidHeaderValue", 2),
370    ("http.request", "request", 3),
371    ("http.setGlobalProxyFromEnv", "setGlobalProxyFromEnv", 0),
372    ("http.setMaxIdleHTTPParsers", "setMaxIdleHTTPParsers", 1),
373    ("http.validateHeaderName", "validateHeaderName", 0),
374    ("http.validateHeaderValue", "validateHeaderValue", 0),
375    ("http.websocketMask", "websocketMask", 5),
376    ("http.websocketUnmask", "websocketUnmask", 2),
377    ("http2.connect", "connect", 3),
378    ("http2.createSecureServer", "createSecureServer", 2),
379    ("http2.createServer", "createServer", 2),
380    ("http2.getDefaultSettings", "getDefaultSettings", 0),
381    ("http2.getPackedSettings", "getPackedSettings", 1),
382    ("http2.getUnpackedSettings", "getUnpackedSettings", 1),
383    ("http2.performServerHandshake", "performServerHandshake", 1),
384    ("https.createServer", "createServer", 2),
385    ("https.get", "get", 3),
386    ("https.request", "request", 0),
387    ("net._TransferredBoundSocket", "_TransferredBoundSocket", 0),
388    ("net._createServerHandle", "createServerHandle", 5),
389    ("net._normalizeArgs", "normalizeArgs", 1),
390    ("net.connect", "connect", 0),
391    ("net.createConnection", "connect", 0),
392    ("net.createServer", "createServer", 2),
393    (
394        "net.getDefaultAutoSelectFamily",
395        "getDefaultAutoSelectFamily",
396        0,
397    ),
398    (
399        "net.getDefaultAutoSelectFamilyAttemptTimeout",
400        "getDefaultAutoSelectFamilyAttemptTimeout",
401        0,
402    ),
403    ("net.isIP", "isIP", 1),
404    ("net.isIPv4", "isIPv4", 1),
405    ("net.isIPv6", "isIPv6", 1),
406    (
407        "net.setDefaultAutoSelectFamily",
408        "setDefaultAutoSelectFamily",
409        1,
410    ),
411    (
412        "net.setDefaultAutoSelectFamilyAttemptTimeout",
413        "setDefaultAutoSelectFamilyAttemptTimeout",
414        1,
415    ),
416    ("os.arch", "arch", 0),
417    ("os.availableParallelism", "", 0),
418    ("os.cpus", "cpus", 0),
419    ("os.endianness", "endianness", 0),
420    ("os.freemem", "", 0),
421    ("os.getPriority", "getPriority", 1),
422    ("os.homedir", "wrappedFn", 0),
423    ("os.hostname", "wrappedFn", 0),
424    ("os.loadavg", "loadavg", 0),
425    ("os.machine", "getMachine", 0),
426    ("os.networkInterfaces", "networkInterfaces", 0),
427    ("os.platform", "platform", 0),
428    ("os.release", "getOSRelease", 0),
429    ("os.setPriority", "setPriority", 2),
430    ("os.tmpdir", "tmpdir", 0),
431    ("os.totalmem", "", 0),
432    ("os.type", "getOSType", 0),
433    ("os.uptime", "wrappedFn", 0),
434    ("os.userInfo", "userInfo", 1),
435    ("os.version", "getOSVersion", 0),
436    ("path._makeLong", "toNamespacedPath", 1),
437    ("path.basename", "basename", 2),
438    ("path.dirname", "dirname", 1),
439    ("path.extname", "extname", 1),
440    ("path.format", "bound _format", 1),
441    ("path.isAbsolute", "isAbsolute", 1),
442    ("path.join", "join", 0),
443    ("path.matchesGlob", "matchesGlob", 2),
444    ("path.normalize", "normalize", 1),
445    ("path.parse", "parse", 1),
446    ("path.relative", "relative", 2),
447    ("path.resolve", "resolve", 0),
448    ("path.toNamespacedPath", "toNamespacedPath", 1),
449    ("path/win32._makeLong", "toNamespacedPath", 1),
450    ("path/win32.basename", "basename", 2),
451    ("path/win32.dirname", "dirname", 1),
452    ("path/win32.extname", "extname", 1),
453    ("path/win32.format", "bound _format", 1),
454    ("path/win32.isAbsolute", "isAbsolute", 1),
455    ("path/win32.join", "join", 0),
456    ("path/win32.matchesGlob", "matchesGlob", 2),
457    ("path/win32.normalize", "normalize", 1),
458    ("path/win32.parse", "parse", 1),
459    ("path/win32.relative", "relative", 2),
460    ("path/win32.resolve", "resolve", 0),
461    ("path/win32.toNamespacedPath", "toNamespacedPath", 1),
462    ("perf_hooks.createHistogram", "createHistogram", 0),
463    (
464        "perf_hooks.createSlidingWindowHistogram",
465        "createSlidingWindowHistogram",
466        1,
467    ),
468    ("perf_hooks.eventLoopUtilization", "eventLoopUtilization", 2),
469    ("perf_hooks.importHistogram", "importHistogram", 1),
470    (
471        "perf_hooks.monitorEventLoopDelay",
472        "monitorEventLoopDelay",
473        0,
474    ),
475    ("perf_hooks.timerify", "timerify", 1),
476    ("process._debugEnd", "_debugEnd", 0),
477    ("process._debugProcess", "_debugProcess", 0),
478    ("process._fatalException", "", 2),
479    ("process._getActiveHandles", "_getActiveHandles", 0),
480    ("process._getActiveRequests", "_getActiveRequests", 0),
481    ("process._kill", "_kill", 0),
482    ("process._linkedBinding", "_linkedBinding", 1),
483    ("process._rawDebug", "_rawDebug", 0),
484    ("process._startProfilerIdleNotifier", "", 0),
485    ("process._stopProfilerIdleNotifier", "", 0),
486    ("process._tickCallback", "runNextTicks", 0),
487    ("process.abort", "abort", 0),
488    (
489        "process.addUncaughtExceptionCaptureCallback",
490        "addUncaughtExceptionCaptureCallback",
491        1,
492    ),
493    ("process.availableMemory", "availableMemory", 0),
494    ("process.binding", "binding", 1),
495    ("process.chdir", "wrappedChdir", 1),
496    ("process.constrainedMemory", "constrainedMemory", 0),
497    ("process.cpuUsage", "cpuUsage", 1),
498    ("process.cwd", "wrappedCwd", 0),
499    ("process.dlopen", "dlopen", 0),
500    ("process.emitWarning", "emitWarning", 4),
501    ("process.execve", "execve", 1),
502    ("process.exit", "exit", 1),
503    (
504        "process.getActiveResourcesInfo",
505        "getActiveResourcesInfo",
506        0,
507    ),
508    ("process.getBuiltinModule", "getBuiltinModule", 1),
509    ("process.getegid", "getegid", 0),
510    ("process.geteuid", "geteuid", 0),
511    ("process.getgid", "getgid", 0),
512    ("process.getgroups", "getgroups", 0),
513    ("process.getuid", "getuid", 0),
514    (
515        "process.hasUncaughtExceptionCaptureCallback",
516        "hasUncaughtExceptionCaptureCallback",
517        0,
518    ),
519    ("process.hrtime", "hrtime", 1),
520    ("process.initgroups", "initgroups", 2),
521    ("process.kill", "kill", 2),
522    ("process.loadEnvFile", "loadEnvFile", 0),
523    ("process.memoryUsage", "memoryUsage", 0),
524    ("process.nextTick", "nextTick", 1),
525    ("process.openStdin", "", 0),
526    ("process.reallyExit", "reallyExit", 0),
527    ("process.ref", "ref", 1),
528    ("process.resourceUsage", "resourceUsage", 0),
529    ("process.setSourceMapsEnabled", "setSourceMapsEnabled", 1),
530    (
531        "process.setUncaughtExceptionCaptureCallback",
532        "setUncaughtExceptionCaptureCallback",
533        1,
534    ),
535    ("process.setegid", "", 1),
536    ("process.seteuid", "", 1),
537    ("process.setgid", "", 1),
538    ("process.setgroups", "setgroups", 1),
539    ("process.setuid", "", 1),
540    ("process.threadCpuUsage", "threadCpuUsage", 1),
541    ("process.umask", "wrappedUmask", 1),
542    ("process.unref", "unref", 1),
543    ("process.uptime", "uptime", 0),
544    ("querystring.decode", "parse", 4),
545    ("querystring.encode", "stringify", 4),
546    ("querystring.escape", "qsEscape", 1),
547    ("querystring.parse", "parse", 4),
548    ("querystring.stringify", "stringify", 4),
549    ("querystring.unescape", "qsUnescape", 2),
550    ("querystring.unescapeBuffer", "unescapeBuffer", 2),
551    ("readline.clearLine", "clearLine", 3),
552    ("readline.clearScreenDown", "clearScreenDown", 2),
553    ("readline.createInterface", "createInterface", 4),
554    ("readline.cursorTo", "cursorTo", 4),
555    ("readline.emitKeypressEvents", "emitKeypressEvents", 1),
556    ("readline.moveCursor", "moveCursor", 4),
557    ("readline/promises.createInterface", "createInterface", 4),
558    ("repl.isValidSyntax", "isValidSyntax", 1),
559    ("repl.start", "start", 6),
560    ("repl.writer", "writer", 1),
561    ("stream/consumers.arrayBuffer", "arrayBuffer", 1),
562    ("stream/consumers.blob", "blob", 1),
563    ("stream/consumers.buffer", "buffer", 1),
564    ("stream/consumers.bytes", "bytes", 1),
565    ("stream/consumers.json", "json", 1),
566    ("stream/consumers.text", "text", 1),
567    ("stream/promises.finished", "finished", 2),
568    ("stream/promises.pipeline", "pipeline", 0),
569    ("timers.clearImmediate", "clearImmediate", 1),
570    ("timers.clearInterval", "clearInterval", 1),
571    ("timers.clearTimeout", "clearTimeout", 1),
572    ("timers.setImmediate", "setImmediate", 1),
573    ("timers.setInterval", "setInterval", 2),
574    ("timers.setTimeout", "setTimeout", 2),
575    ("timers/promises.setImmediate", "setImmediate", 1),
576    ("timers/promises.setInterval", "setInterval", 2),
577    ("timers/promises.setTimeout", "setTimeout", 2),
578    ("tls.checkServerIdentity", "checkServerIdentity", 2),
579    ("tls.connect", "connect", 0),
580    ("tls.convertALPNProtocols", "convertALPNProtocols", 2),
581    ("tls.createSecureContext", "createSecureContext", 1),
582    ("tls.createServer", "createServer", 2),
583    ("tls.getCACertificates", "getCACertificates", 0),
584    ("tls.getCertificateCompressionAlgorithms", "", 0),
585    ("tls.getCiphers", "", 0),
586    (
587        "tls.setDefaultCACertificates",
588        "setDefaultCACertificates",
589        1,
590    ),
591    ("trace_events.createTracing", "createTracing", 1),
592    (
593        "trace_events.getEnabledCategories",
594        "getEnabledCategories",
595        0,
596    ),
597    ("tty.isatty", "isatty", 1),
598    ("url.domainToASCII", "domainToASCII", 1),
599    ("url.domainToUnicode", "domainToUnicode", 1),
600    ("url.fileURLToPath", "fileURLToPath", 1),
601    ("url.fileURLToPathBuffer", "fileURLToPathBuffer", 1),
602    ("url.format", "urlFormat", 2),
603    ("url.parse", "urlParse", 3),
604    ("url.pathToFileURL", "pathToFileURL", 2),
605    ("url.resolve", "urlResolve", 2),
606    ("url.resolveObject", "urlResolveObject", 2),
607    ("url.urlToHttpOptions", "urlToHttpOptions", 1),
608    ("util._errnoException", "_errnoException", 0),
609    ("util._exceptionWithHostPort", "_exceptionWithHostPort", 0),
610    ("util._extend", "deprecated", 2),
611    ("util.aborted", "aborted", 2),
612    ("util.callbackify", "callbackify", 1),
613    (
614        "util.convertProcessSignalToExitCode",
615        "convertProcessSignalToExitCode",
616        1,
617    ),
618    ("util.debounce", "debounce", 2),
619    ("util.debug", "debuglog", 2),
620    ("util.debuglog", "debuglog", 2),
621    ("util.deprecate", "deprecate", 3),
622    ("util.diff", "diff", 2),
623    ("util.format", "format", 0),
624    ("util.formatWithOptions", "formatWithOptions", 1),
625    ("util.getCallSites", "getCallSites", 0),
626    ("util.getSystemErrorMap", "getSystemErrorMap", 0),
627    ("util.getSystemErrorMessage", "getSystemErrorMessage", 1),
628    ("util.getSystemErrorName", "getSystemErrorName", 1),
629    ("util.inherits", "inherits", 2),
630    ("util.inspect", "inspect", 2),
631    ("util.isArray", "deprecated", 1),
632    ("util.isDeepStrictEqual", "isDeepStrictEqual", 3),
633    (
634        "util.isPartialDeepStrictEqual",
635        "isPartialDeepStrictEqual",
636        2,
637    ),
638    ("util.markPromiseAsHandled", "markPromiseAsHandled", 1),
639    ("util.parseArgs", "parseArgs", 0),
640    ("util.parseEnv", "parseEnv", 1),
641    ("util.promisify", "promisify", 1),
642    ("util.setTraceSigInt", "setTraceSigInt", 1),
643    (
644        "util.stripVTControlCharacters",
645        "stripVTControlCharacters",
646        1,
647    ),
648    ("util.styleText", "styleText", 3),
649    ("util.throttle", "throttle", 3),
650    ("util.toUSVString", "toUSVString", 1),
651    (
652        "util.transferableAbortController",
653        "transferableAbortController",
654        0,
655    ),
656    ("util.transferableAbortSignal", "transferableAbortSignal", 1),
657    ("util/types.isAnyArrayBuffer", "", 0),
658    ("util/types.isArgumentsObject", "", 0),
659    ("util/types.isArrayBuffer", "", 0),
660    ("util/types.isArrayBufferView", "isView", 1),
661    ("util/types.isAsyncFunction", "", 0),
662    ("util/types.isBigInt64Array", "isBigInt64Array", 1),
663    ("util/types.isBigIntObject", "", 0),
664    ("util/types.isBigUint64Array", "isBigUint64Array", 1),
665    ("util/types.isBooleanObject", "", 0),
666    ("util/types.isBoxedPrimitive", "", 0),
667    ("util/types.isCryptoKey", "isCryptoKey", 1),
668    ("util/types.isDataView", "isDataView", 1),
669    ("util/types.isDate", "", 0),
670    ("util/types.isExternal", "", 0),
671    ("util/types.isFloat16Array", "isFloat16Array", 1),
672    ("util/types.isFloat32Array", "isFloat32Array", 1),
673    ("util/types.isFloat64Array", "isFloat64Array", 1),
674    ("util/types.isGeneratorFunction", "", 0),
675    ("util/types.isGeneratorObject", "", 0),
676    ("util/types.isInt16Array", "isInt16Array", 1),
677    ("util/types.isInt32Array", "isInt32Array", 1),
678    ("util/types.isInt8Array", "isInt8Array", 1),
679    ("util/types.isKeyObject", "isKeyObject", 1),
680    ("util/types.isMap", "", 0),
681    ("util/types.isMapIterator", "", 0),
682    ("util/types.isModuleNamespaceObject", "", 0),
683    ("util/types.isNativeError", "", 0),
684    ("util/types.isNumberObject", "", 0),
685    ("util/types.isPromise", "", 0),
686    ("util/types.isProxy", "", 0),
687    ("util/types.isRegExp", "", 0),
688    ("util/types.isSet", "", 0),
689    ("util/types.isSetIterator", "", 0),
690    ("util/types.isSharedArrayBuffer", "", 0),
691    ("util/types.isStringObject", "", 0),
692    ("util/types.isSymbolObject", "", 0),
693    ("util/types.isTypedArray", "isTypedArray", 1),
694    ("util/types.isUint16Array", "isUint16Array", 1),
695    ("util/types.isUint32Array", "isUint32Array", 1),
696    ("util/types.isUint8Array", "isUint8Array", 1),
697    ("util/types.isUint8ClampedArray", "isUint8ClampedArray", 1),
698    ("util/types.isWeakMap", "", 0),
699    ("util/types.isWeakSet", "", 0),
700    ("v8.cachedDataVersionTag", "cachedDataVersionTag", 0),
701    ("v8.deserialize", "deserialize", 1),
702    ("v8.getCppHeapStatistics", "getCppHeapStatistics", 0),
703    ("v8.getHeapCodeStatistics", "getHeapCodeStatistics", 0),
704    ("v8.getHeapSnapshot", "getHeapSnapshot", 1),
705    ("v8.getHeapSpaceStatistics", "getHeapSpaceStatistics", 0),
706    ("v8.getHeapStatistics", "getHeapStatistics", 0),
707    (
708        "v8.isStringOneByteRepresentation",
709        "isStringOneByteRepresentation",
710        1,
711    ),
712    ("v8.queryObjects", "queryObjects", 1),
713    ("v8.serialize", "serialize", 1),
714    ("v8.setFlagsFromString", "setFlagsFromString", 1),
715    (
716        "v8.setHeapProfileNearHeapLimit",
717        "setHeapProfileNearHeapLimit",
718        1,
719    ),
720    (
721        "v8.setHeapSnapshotNearHeapLimit",
722        "setHeapSnapshotNearHeapLimit",
723        1,
724    ),
725    ("v8.startCpuProfile", "startCpuProfile", 1),
726    ("v8.startHeapProfile", "startHeapProfile", 1),
727    ("v8.stopCoverage", "stopCoverage", 0),
728    ("v8.takeCoverage", "takeCoverage", 0),
729    ("v8.writeHeapSnapshot", "writeHeapSnapshot", 2),
730    ("vm.compileFunction", "compileFunction", 2),
731    ("vm.createContext", "createContext", 0),
732    ("vm.createScript", "createScript", 2),
733    ("vm.isContext", "isContext", 1),
734    ("vm.measureMemory", "measureMemory", 0),
735    ("vm.runInContext", "runInContext", 3),
736    ("vm.runInNewContext", "runInNewContext", 3),
737    ("vm.runInThisContext", "runInThisContext", 2),
738    ("worker_threads.getEnvironmentData", "getEnvironmentData", 1),
739    (
740        "worker_threads.isMarkedAsUntransferable",
741        "isMarkedAsUntransferable",
742        1,
743    ),
744    ("worker_threads.markAsUncloneable", "markAsUncloneable", 1),
745    (
746        "worker_threads.markAsUntransferable",
747        "markAsUntransferable",
748        1,
749    ),
750    (
751        "worker_threads.moveMessagePortToContext",
752        "moveMessagePortToContext",
753        0,
754    ),
755    (
756        "worker_threads.postMessageToThread",
757        "postMessageToThread",
758        4,
759    ),
760    (
761        "worker_threads.receiveMessageOnPort",
762        "receiveMessageOnPort",
763        1,
764    ),
765    ("worker_threads.setEnvironmentData", "setEnvironmentData", 2),
766    ("zlib.brotliCompress", "asyncBufferWrapper", 3),
767    ("zlib.brotliCompressSync", "syncBufferWrapper", 2),
768    ("zlib.brotliDecompress", "asyncBufferWrapper", 3),
769    ("zlib.brotliDecompressSync", "syncBufferWrapper", 2),
770    ("zlib.crc32", "crc32", 1),
771    ("zlib.createBrotliCompress", "createBrotliCompress", 1),
772    ("zlib.createBrotliDecompress", "createBrotliDecompress", 1),
773    ("zlib.createDeflate", "createDeflate", 1),
774    ("zlib.createDeflateRaw", "createDeflateRaw", 1),
775    ("zlib.createGunzip", "createGunzip", 1),
776    ("zlib.createGzip", "createGzip", 1),
777    ("zlib.createInflate", "createInflate", 1),
778    ("zlib.createInflateRaw", "createInflateRaw", 1),
779    ("zlib.createUnzip", "createUnzip", 1),
780    ("zlib.createZipArchive", "", 0),
781    ("zlib.createZipArchiveSync", "", 0),
782    ("zlib.createZstdCompress", "createZstdCompress", 1),
783    ("zlib.createZstdDecompress", "createZstdDecompress", 1),
784    ("zlib.deflate", "asyncBufferWrapper", 3),
785    ("zlib.deflateRaw", "asyncBufferWrapper", 3),
786    ("zlib.deflateRawSync", "syncBufferWrapper", 2),
787    ("zlib.deflateSync", "syncBufferWrapper", 2),
788    ("zlib.getMaxZipContentSize", "", 0),
789    ("zlib.gunzip", "asyncBufferWrapper", 3),
790    ("zlib.gunzipSync", "syncBufferWrapper", 2),
791    ("zlib.gzip", "asyncBufferWrapper", 3),
792    ("zlib.gzipSync", "syncBufferWrapper", 2),
793    ("zlib.inflate", "asyncBufferWrapper", 3),
794    ("zlib.inflateRaw", "asyncBufferWrapper", 3),
795    ("zlib.inflateRawSync", "syncBufferWrapper", 2),
796    ("zlib.inflateSync", "syncBufferWrapper", 2),
797    ("zlib.setMaxZipContentSize", "", 0),
798    ("zlib.unzip", "asyncBufferWrapper", 3),
799    ("zlib.unzipSync", "syncBufferWrapper", 2),
800    ("zlib.zipFiles", "", 0),
801    ("zlib.zstdCompress", "asyncBufferWrapper", 3),
802    ("zlib.zstdCompressSync", "syncBufferWrapper", 2),
803    ("zlib.zstdDecompress", "asyncBufferWrapper", 3),
804    ("zlib.zstdDecompressSync", "syncBufferWrapper", 2),
805];
806
807/// The keys of [`CORE_ARITY`] whose function owns a `prototype` (an ordinary
808/// `function`; an arrow, a method or a bound function owns none). Sorted.
809pub const CORE_PROTOTYPED: &[&str] = &[
810    "EventEmitter.addAbortListener",
811    "EventEmitter.getEventListeners",
812    "EventEmitter.getMaxListeners",
813    "EventEmitter.init",
814    "EventEmitter.listenerCount",
815    "EventEmitter.on",
816    "EventEmitter.setMaxListeners",
817    "Stream._isUint8Array",
818    "Stream._uint8ArrayToBuffer",
819    "Stream.addAbortSignal",
820    "Stream.compose",
821    "Stream.destroy",
822    "Stream.duplexPair",
823    "Stream.finished",
824    "Stream.getDefaultHighWaterMark",
825    "Stream.isDestroyed",
826    "Stream.isDisturbed",
827    "Stream.isErrored",
828    "Stream.isReadable",
829    "Stream.isWritable",
830    "Stream.pipeline",
831    "Stream.setDefaultHighWaterMark",
832    "assert.deepEqual",
833    "assert.deepStrictEqual",
834    "assert.doesNotMatch",
835    "assert.doesNotThrow",
836    "assert.equal",
837    "assert.fail",
838    "assert.ifError",
839    "assert.match",
840    "assert.notDeepEqual",
841    "assert.notDeepStrictEqual",
842    "assert.notEqual",
843    "assert.notStrictEqual",
844    "assert.ok",
845    "assert.partialDeepStrictEqual",
846    "assert.strict",
847    "assert.strictEqual",
848    "assert.throws",
849    "async_hooks.createHook",
850    "async_hooks.executionAsyncId",
851    "async_hooks.executionAsyncResource",
852    "async_hooks.triggerAsyncId",
853    "buffer.atob",
854    "buffer.btoa",
855    "buffer.isAscii",
856    "buffer.isLatin1",
857    "buffer.isUtf8",
858    "buffer.resolveObjectURL",
859    "buffer.transcode",
860    "child_process._forkChild",
861    "child_process.exec",
862    "child_process.execFile",
863    "child_process.execFileSync",
864    "child_process.execSync",
865    "child_process.fork",
866    "child_process.spawn",
867    "child_process.spawnSync",
868    "cluster.disconnect",
869    "cluster.fork",
870    "cluster.setupMaster",
871    "cluster.setupPrimary",
872    "crypto.argon2",
873    "crypto.argon2Sync",
874    "crypto.checkPrime",
875    "crypto.checkPrimeSync",
876    "crypto.createCipheriv",
877    "crypto.createDecipheriv",
878    "crypto.createDiffieHellman",
879    "crypto.createDiffieHellmanGroup",
880    "crypto.createECDH",
881    "crypto.createHash",
882    "crypto.createHmac",
883    "crypto.createMac",
884    "crypto.createPrivateKey",
885    "crypto.createPublicKey",
886    "crypto.createSecretKey",
887    "crypto.createSign",
888    "crypto.createVerify",
889    "crypto.decapsulate",
890    "crypto.diffieHellman",
891    "crypto.encapsulate",
892    "crypto.generateKey",
893    "crypto.generateKeyPair",
894    "crypto.generateKeyPairSync",
895    "crypto.generateKeySync",
896    "crypto.generatePrime",
897    "crypto.generatePrimeSync",
898    "crypto.getCipherInfo",
899    "crypto.getDiffieHellman",
900    "crypto.getFips",
901    "crypto.getRandomValues",
902    "crypto.hash",
903    "crypto.hkdf",
904    "crypto.hkdfSync",
905    "crypto.parsePKCS12",
906    "crypto.pbkdf2",
907    "crypto.pbkdf2Sync",
908    "crypto.prng",
909    "crypto.pseudoRandomBytes",
910    "crypto.randomBytes",
911    "crypto.randomFill",
912    "crypto.randomFillSync",
913    "crypto.randomInt",
914    "crypto.randomUUID",
915    "crypto.randomUUIDv7",
916    "crypto.rng",
917    "crypto.scrypt",
918    "crypto.scryptSync",
919    "crypto.secureHeapUsed",
920    "crypto.setEngine",
921    "crypto.setFips",
922    "crypto.sign",
923    "crypto.verify",
924    "dgram.createSocket",
925    "diagnostics_channel.boundedChannel",
926    "diagnostics_channel.channel",
927    "diagnostics_channel.hasSubscribers",
928    "diagnostics_channel.subscribe",
929    "diagnostics_channel.tracingChannel",
930    "diagnostics_channel.unsubscribe",
931    "dns.getDefaultResultOrder",
932    "dns.lookup",
933    "dns.lookupService",
934    "dns.setDefaultResultOrder",
935    "dns.setServers",
936    "dns/promises.getDefaultResultOrder",
937    "dns/promises.lookup",
938    "dns/promises.lookupService",
939    "dns/promises.setDefaultResultOrder",
940    "dns/promises.setServers",
941    "domain.create",
942    "domain.createDomain",
943    "fs._toUnixTimestamp",
944    "fs.access",
945    "fs.accessSync",
946    "fs.appendFile",
947    "fs.appendFileSync",
948    "fs.chmod",
949    "fs.chmodSync",
950    "fs.chown",
951    "fs.chownSync",
952    "fs.close",
953    "fs.closeSync",
954    "fs.copyFile",
955    "fs.copyFileSync",
956    "fs.cp",
957    "fs.cpSync",
958    "fs.createReadStream",
959    "fs.createWriteStream",
960    "fs.exists",
961    "fs.existsSync",
962    "fs.fchmod",
963    "fs.fchmodSync",
964    "fs.fchown",
965    "fs.fchownSync",
966    "fs.fdatasync",
967    "fs.fdatasyncSync",
968    "fs.fstat",
969    "fs.fstatSync",
970    "fs.fsync",
971    "fs.fsyncSync",
972    "fs.ftruncate",
973    "fs.ftruncateSync",
974    "fs.futimes",
975    "fs.futimesSync",
976    "fs.glob",
977    "fs.globSync",
978    "fs.lchmod",
979    "fs.lchmodSync",
980    "fs.lchown",
981    "fs.lchownSync",
982    "fs.link",
983    "fs.linkSync",
984    "fs.lstat",
985    "fs.lstatSync",
986    "fs.lutimes",
987    "fs.lutimesSync",
988    "fs.mkdir",
989    "fs.mkdirSync",
990    "fs.mkdtemp",
991    "fs.mkdtempDisposableSync",
992    "fs.mkdtempSync",
993    "fs.open",
994    "fs.openAsBlob",
995    "fs.openAsBlobSync",
996    "fs.openSync",
997    "fs.opendir",
998    "fs.opendirSync",
999    "fs.read",
1000    "fs.readFile",
1001    "fs.readFileSync",
1002    "fs.readSync",
1003    "fs.readdir",
1004    "fs.readdirSync",
1005    "fs.readlink",
1006    "fs.readlinkSync",
1007    "fs.readv",
1008    "fs.readvSync",
1009    "fs.realpath",
1010    "fs.realpathSync",
1011    "fs.rename",
1012    "fs.renameSync",
1013    "fs.rm",
1014    "fs.rmSync",
1015    "fs.rmdir",
1016    "fs.rmdirSync",
1017    "fs.stat",
1018    "fs.statSync",
1019    "fs.statfs",
1020    "fs.statfsSync",
1021    "fs.symlink",
1022    "fs.symlinkSync",
1023    "fs.truncate",
1024    "fs.truncateSync",
1025    "fs.unlink",
1026    "fs.unlinkSync",
1027    "fs.unwatchFile",
1028    "fs.utimes",
1029    "fs.utimesSync",
1030    "fs.watch",
1031    "fs.watchFile",
1032    "fs.write",
1033    "fs.writeFile",
1034    "fs.writeFileSync",
1035    "fs.writeSync",
1036    "fs.writev",
1037    "fs.writevSync",
1038    "fs/promises.glob",
1039    "fs/promises.opendir",
1040    "fs/promises.watch",
1041    "http._connectionListener",
1042    "http.createServer",
1043    "http.get",
1044    "http.isValidHeaderName",
1045    "http.isValidHeaderValue",
1046    "http.request",
1047    "http.setGlobalProxyFromEnv",
1048    "http.validateHeaderName",
1049    "http.validateHeaderValue",
1050    "http.websocketMask",
1051    "http.websocketUnmask",
1052    "http2.connect",
1053    "http2.createSecureServer",
1054    "http2.createServer",
1055    "http2.getDefaultSettings",
1056    "http2.getPackedSettings",
1057    "http2.getUnpackedSettings",
1058    "http2.performServerHandshake",
1059    "https.createServer",
1060    "https.get",
1061    "https.request",
1062    "net._TransferredBoundSocket",
1063    "net._createServerHandle",
1064    "net._normalizeArgs",
1065    "net.connect",
1066    "net.createConnection",
1067    "net.createServer",
1068    "net.getDefaultAutoSelectFamily",
1069    "net.getDefaultAutoSelectFamilyAttemptTimeout",
1070    "net.isIP",
1071    "net.isIPv4",
1072    "net.isIPv6",
1073    "net.setDefaultAutoSelectFamily",
1074    "net.setDefaultAutoSelectFamilyAttemptTimeout",
1075    "os.arch",
1076    "os.cpus",
1077    "os.endianness",
1078    "os.getPriority",
1079    "os.homedir",
1080    "os.hostname",
1081    "os.loadavg",
1082    "os.networkInterfaces",
1083    "os.platform",
1084    "os.setPriority",
1085    "os.tmpdir",
1086    "os.uptime",
1087    "os.userInfo",
1088    "perf_hooks.createHistogram",
1089    "perf_hooks.createSlidingWindowHistogram",
1090    "perf_hooks.eventLoopUtilization",
1091    "perf_hooks.importHistogram",
1092    "perf_hooks.monitorEventLoopDelay",
1093    "perf_hooks.timerify",
1094    "process._linkedBinding",
1095    "process._rawDebug",
1096    "process._tickCallback",
1097    "process.addUncaughtExceptionCaptureCallback",
1098    "process.binding",
1099    "process.chdir",
1100    "process.cpuUsage",
1101    "process.cwd",
1102    "process.emitWarning",
1103    "process.execve",
1104    "process.exit",
1105    "process.getBuiltinModule",
1106    "process.hasUncaughtExceptionCaptureCallback",
1107    "process.hrtime",
1108    "process.initgroups",
1109    "process.kill",
1110    "process.loadEnvFile",
1111    "process.memoryUsage",
1112    "process.nextTick",
1113    "process.openStdin",
1114    "process.ref",
1115    "process.resourceUsage",
1116    "process.setSourceMapsEnabled",
1117    "process.setUncaughtExceptionCaptureCallback",
1118    "process.setegid",
1119    "process.seteuid",
1120    "process.setgid",
1121    "process.setgroups",
1122    "process.setuid",
1123    "process.threadCpuUsage",
1124    "process.umask",
1125    "process.unref",
1126    "querystring.decode",
1127    "querystring.encode",
1128    "querystring.escape",
1129    "querystring.parse",
1130    "querystring.stringify",
1131    "querystring.unescape",
1132    "querystring.unescapeBuffer",
1133    "readline.clearLine",
1134    "readline.clearScreenDown",
1135    "readline.createInterface",
1136    "readline.cursorTo",
1137    "readline.emitKeypressEvents",
1138    "readline.moveCursor",
1139    "readline/promises.createInterface",
1140    "repl.isValidSyntax",
1141    "repl.start",
1142    "stream/promises.finished",
1143    "stream/promises.pipeline",
1144    "timers.clearImmediate",
1145    "timers.clearInterval",
1146    "timers.clearTimeout",
1147    "timers.setImmediate",
1148    "timers.setInterval",
1149    "timers.setTimeout",
1150    "timers/promises.setImmediate",
1151    "timers/promises.setInterval",
1152    "timers/promises.setTimeout",
1153    "tls.checkServerIdentity",
1154    "tls.connect",
1155    "tls.convertALPNProtocols",
1156    "tls.createSecureContext",
1157    "tls.createServer",
1158    "tls.getCACertificates",
1159    "tls.setDefaultCACertificates",
1160    "trace_events.createTracing",
1161    "tty.isatty",
1162    "url.domainToASCII",
1163    "url.domainToUnicode",
1164    "url.fileURLToPath",
1165    "url.fileURLToPathBuffer",
1166    "url.format",
1167    "url.parse",
1168    "url.pathToFileURL",
1169    "url.resolve",
1170    "url.resolveObject",
1171    "url.urlToHttpOptions",
1172    "util._errnoException",
1173    "util._exceptionWithHostPort",
1174    "util._extend",
1175    "util.callbackify",
1176    "util.convertProcessSignalToExitCode",
1177    "util.debounce",
1178    "util.debug",
1179    "util.debuglog",
1180    "util.deprecate",
1181    "util.diff",
1182    "util.format",
1183    "util.formatWithOptions",
1184    "util.getCallSites",
1185    "util.getSystemErrorMap",
1186    "util.getSystemErrorMessage",
1187    "util.getSystemErrorName",
1188    "util.inherits",
1189    "util.inspect",
1190    "util.isArray",
1191    "util.markPromiseAsHandled",
1192    "util.parseEnv",
1193    "util.promisify",
1194    "util.setTraceSigInt",
1195    "util.stripVTControlCharacters",
1196    "util.styleText",
1197    "util.throttle",
1198    "util.transferableAbortController",
1199    "util.transferableAbortSignal",
1200    "util/types.isBigInt64Array",
1201    "util/types.isBigUint64Array",
1202    "util/types.isCryptoKey",
1203    "util/types.isDataView",
1204    "util/types.isFloat16Array",
1205    "util/types.isFloat32Array",
1206    "util/types.isFloat64Array",
1207    "util/types.isInt16Array",
1208    "util/types.isInt32Array",
1209    "util/types.isInt8Array",
1210    "util/types.isKeyObject",
1211    "util/types.isTypedArray",
1212    "util/types.isUint16Array",
1213    "util/types.isUint32Array",
1214    "util/types.isUint8Array",
1215    "util/types.isUint8ClampedArray",
1216    "v8.deserialize",
1217    "v8.getCppHeapStatistics",
1218    "v8.getHeapCodeStatistics",
1219    "v8.getHeapSnapshot",
1220    "v8.getHeapSpaceStatistics",
1221    "v8.getHeapStatistics",
1222    "v8.isStringOneByteRepresentation",
1223    "v8.queryObjects",
1224    "v8.serialize",
1225    "v8.setFlagsFromString",
1226    "v8.setHeapProfileNearHeapLimit",
1227    "v8.setHeapSnapshotNearHeapLimit",
1228    "v8.startCpuProfile",
1229    "v8.startHeapProfile",
1230    "v8.writeHeapSnapshot",
1231    "vm.compileFunction",
1232    "vm.createContext",
1233    "vm.createScript",
1234    "vm.isContext",
1235    "vm.measureMemory",
1236    "vm.runInContext",
1237    "vm.runInNewContext",
1238    "vm.runInThisContext",
1239    "worker_threads.getEnvironmentData",
1240    "worker_threads.isMarkedAsUntransferable",
1241    "worker_threads.markAsUncloneable",
1242    "worker_threads.markAsUntransferable",
1243    "worker_threads.receiveMessageOnPort",
1244    "worker_threads.setEnvironmentData",
1245    "zlib.brotliCompress",
1246    "zlib.brotliCompressSync",
1247    "zlib.brotliDecompress",
1248    "zlib.brotliDecompressSync",
1249    "zlib.crc32",
1250    "zlib.createBrotliCompress",
1251    "zlib.createBrotliDecompress",
1252    "zlib.createDeflate",
1253    "zlib.createDeflateRaw",
1254    "zlib.createGunzip",
1255    "zlib.createGzip",
1256    "zlib.createInflate",
1257    "zlib.createInflateRaw",
1258    "zlib.createUnzip",
1259    "zlib.createZipArchive",
1260    "zlib.createZipArchiveSync",
1261    "zlib.createZstdCompress",
1262    "zlib.createZstdDecompress",
1263    "zlib.deflate",
1264    "zlib.deflateRaw",
1265    "zlib.deflateRawSync",
1266    "zlib.deflateSync",
1267    "zlib.getMaxZipContentSize",
1268    "zlib.gunzip",
1269    "zlib.gunzipSync",
1270    "zlib.gzip",
1271    "zlib.gzipSync",
1272    "zlib.inflate",
1273    "zlib.inflateRaw",
1274    "zlib.inflateRawSync",
1275    "zlib.inflateSync",
1276    "zlib.setMaxZipContentSize",
1277    "zlib.unzip",
1278    "zlib.unzipSync",
1279    "zlib.zipFiles",
1280    "zlib.zstdCompress",
1281    "zlib.zstdCompressSync",
1282    "zlib.zstdDecompress",
1283    "zlib.zstdDecompressSync",
1284];
1285
1286/// Each core module's own enumerable keys in node's order (`Object.keys`),
1287/// keyed by namespace spelling and sorted by it; the keys within a row are
1288/// not sorted.
1289pub const CORE_KEYS: &[(&str, &[&str])] = &[
1290    (
1291        "EventEmitter",
1292        &[
1293            "addAbortListener",
1294            "once",
1295            "on",
1296            "getEventListeners",
1297            "getMaxListeners",
1298            "listenerCount",
1299            "EventEmitter",
1300            "usingDomains",
1301            "captureRejectionSymbol",
1302            "captureRejections",
1303            "EventEmitterAsyncResource",
1304            "errorMonitor",
1305            "defaultMaxListeners",
1306            "setMaxListeners",
1307            "init",
1308        ],
1309    ),
1310    (
1311        "Stream",
1312        &[
1313            "isDestroyed",
1314            "isDisturbed",
1315            "isErrored",
1316            "isReadable",
1317            "isWritable",
1318            "Readable",
1319            "Writable",
1320            "Duplex",
1321            "Transform",
1322            "PassThrough",
1323            "duplexPair",
1324            "pipeline",
1325            "addAbortSignal",
1326            "finished",
1327            "destroy",
1328            "compose",
1329            "setDefaultHighWaterMark",
1330            "getDefaultHighWaterMark",
1331            "promises",
1332            "Stream",
1333            "_isArrayBufferView",
1334            "_isUint8Array",
1335            "_uint8ArrayToBuffer",
1336        ],
1337    ),
1338    (
1339        "assert",
1340        &[
1341            "AssertionError",
1342            "ok",
1343            "fail",
1344            "equal",
1345            "notEqual",
1346            "deepEqual",
1347            "notDeepEqual",
1348            "deepStrictEqual",
1349            "notDeepStrictEqual",
1350            "strictEqual",
1351            "notStrictEqual",
1352            "partialDeepStrictEqual",
1353            "match",
1354            "doesNotMatch",
1355            "throws",
1356            "rejects",
1357            "doesNotThrow",
1358            "doesNotReject",
1359            "ifError",
1360            "strict",
1361            "Assert",
1362        ],
1363    ),
1364    (
1365        "async_hooks",
1366        &[
1367            "AsyncLocalStorage",
1368            "createHook",
1369            "executionAsyncId",
1370            "triggerAsyncId",
1371            "executionAsyncResource",
1372            "asyncWrapProviders",
1373            "AsyncResource",
1374        ],
1375    ),
1376    (
1377        "buffer",
1378        &[
1379            "Buffer",
1380            "transcode",
1381            "isUtf8",
1382            "isAscii",
1383            "isLatin1",
1384            "kMaxLength",
1385            "kStringMaxLength",
1386            "btoa",
1387            "atob",
1388            "constants",
1389            "INSPECT_MAX_BYTES",
1390            "Blob",
1391            "resolveObjectURL",
1392            "File",
1393        ],
1394    ),
1395    (
1396        "child_process",
1397        &[
1398            "_forkChild",
1399            "ChildProcess",
1400            "exec",
1401            "execFile",
1402            "execFileSync",
1403            "execSync",
1404            "fork",
1405            "spawn",
1406            "spawnSync",
1407        ],
1408    ),
1409    (
1410        "cluster",
1411        &[
1412            "_events",
1413            "_eventsCount",
1414            "_maxListeners",
1415            "isWorker",
1416            "isMaster",
1417            "isPrimary",
1418            "Worker",
1419            "workers",
1420            "settings",
1421            "SCHED_NONE",
1422            "SCHED_RR",
1423            "schedulingPolicy",
1424            "setupPrimary",
1425            "setupMaster",
1426            "fork",
1427            "disconnect",
1428        ],
1429    ),
1430    (
1431        "console",
1432        &[
1433            "log",
1434            "info",
1435            "debug",
1436            "warn",
1437            "error",
1438            "dir",
1439            "time",
1440            "timeEnd",
1441            "timeLog",
1442            "trace",
1443            "assert",
1444            "clear",
1445            "count",
1446            "countReset",
1447            "group",
1448            "groupEnd",
1449            "table",
1450            "dirxml",
1451            "groupCollapsed",
1452            "Console",
1453            "profile",
1454            "profileEnd",
1455            "timeStamp",
1456            "context",
1457            "createTask",
1458        ],
1459    ),
1460    (
1461        "crypto",
1462        &[
1463            "argon2",
1464            "argon2Sync",
1465            "checkPrime",
1466            "checkPrimeSync",
1467            "createCipheriv",
1468            "createDecipheriv",
1469            "createDiffieHellman",
1470            "createDiffieHellmanGroup",
1471            "createECDH",
1472            "createHash",
1473            "createHmac",
1474            "createMac",
1475            "createPrivateKey",
1476            "createPublicKey",
1477            "createSecretKey",
1478            "createSign",
1479            "createVerify",
1480            "diffieHellman",
1481            "generatePrime",
1482            "generatePrimeSync",
1483            "getCiphers",
1484            "getCipherInfo",
1485            "getCurves",
1486            "getDiffieHellman",
1487            "getHashes",
1488            "getMacs",
1489            "hkdf",
1490            "hkdfSync",
1491            "parsePKCS12",
1492            "pbkdf2",
1493            "pbkdf2Sync",
1494            "generateKeyPair",
1495            "generateKeyPairSync",
1496            "generateKey",
1497            "generateKeySync",
1498            "privateDecrypt",
1499            "privateEncrypt",
1500            "publicDecrypt",
1501            "publicEncrypt",
1502            "randomBytes",
1503            "randomFill",
1504            "randomFillSync",
1505            "randomInt",
1506            "randomUUID",
1507            "randomUUIDv7",
1508            "scrypt",
1509            "scryptSync",
1510            "sign",
1511            "setEngine",
1512            "timingSafeEqual",
1513            "getFips",
1514            "setFips",
1515            "verify",
1516            "hash",
1517            "encapsulate",
1518            "decapsulate",
1519            "Certificate",
1520            "Cipheriv",
1521            "Decipheriv",
1522            "DiffieHellman",
1523            "DiffieHellmanGroup",
1524            "ECDH",
1525            "Hash",
1526            "Hmac",
1527            "KeyObject",
1528            "Sign",
1529            "Verify",
1530            "X509Certificate",
1531            "secureHeapUsed",
1532            "constants",
1533            "webcrypto",
1534            "subtle",
1535            "getRandomValues",
1536        ],
1537    ),
1538    ("dgram", &["createSocket", "Socket"]),
1539    (
1540        "diagnostics_channel",
1541        &[
1542            "channel",
1543            "hasSubscribers",
1544            "subscribe",
1545            "tracingChannel",
1546            "unsubscribe",
1547            "boundedChannel",
1548            "Channel",
1549            "BoundedChannel",
1550        ],
1551    ),
1552    (
1553        "dns",
1554        &[
1555            "lookup",
1556            "lookupService",
1557            "Resolver",
1558            "getDefaultResultOrder",
1559            "setDefaultResultOrder",
1560            "setServers",
1561            "ADDRCONFIG",
1562            "ALL",
1563            "V4MAPPED",
1564            "NODATA",
1565            "FORMERR",
1566            "SERVFAIL",
1567            "NOTFOUND",
1568            "NOTIMP",
1569            "REFUSED",
1570            "BADQUERY",
1571            "BADNAME",
1572            "BADFAMILY",
1573            "BADRESP",
1574            "CONNREFUSED",
1575            "TIMEOUT",
1576            "EOF",
1577            "FILE",
1578            "NOMEM",
1579            "DESTRUCTION",
1580            "BADSTR",
1581            "BADFLAGS",
1582            "NONAME",
1583            "BADHINTS",
1584            "NOTINITIALIZED",
1585            "LOADIPHLPAPI",
1586            "ADDRGETNETWORKPARAMS",
1587            "CANCELLED",
1588            "getServers",
1589            "resolve",
1590            "resolve4",
1591            "resolve6",
1592            "resolveAny",
1593            "resolveCaa",
1594            "resolveCname",
1595            "resolveMx",
1596            "resolveNaptr",
1597            "resolveNs",
1598            "resolvePtr",
1599            "resolveSoa",
1600            "resolveSrv",
1601            "resolveTlsa",
1602            "resolveTxt",
1603            "reverse",
1604            "promises",
1605        ],
1606    ),
1607    (
1608        "dns/promises",
1609        &[
1610            "lookup",
1611            "lookupService",
1612            "Resolver",
1613            "getDefaultResultOrder",
1614            "setDefaultResultOrder",
1615            "setServers",
1616            "NODATA",
1617            "FORMERR",
1618            "SERVFAIL",
1619            "NOTFOUND",
1620            "NOTIMP",
1621            "REFUSED",
1622            "BADQUERY",
1623            "BADNAME",
1624            "BADFAMILY",
1625            "BADRESP",
1626            "CONNREFUSED",
1627            "TIMEOUT",
1628            "EOF",
1629            "FILE",
1630            "NOMEM",
1631            "DESTRUCTION",
1632            "BADSTR",
1633            "BADFLAGS",
1634            "NONAME",
1635            "BADHINTS",
1636            "NOTINITIALIZED",
1637            "LOADIPHLPAPI",
1638            "ADDRGETNETWORKPARAMS",
1639            "CANCELLED",
1640            "getServers",
1641            "resolve",
1642            "resolve4",
1643            "resolve6",
1644            "resolveAny",
1645            "resolveCaa",
1646            "resolveCname",
1647            "resolveMx",
1648            "resolveNaptr",
1649            "resolveNs",
1650            "resolvePtr",
1651            "resolveSoa",
1652            "resolveSrv",
1653            "resolveTlsa",
1654            "resolveTxt",
1655            "reverse",
1656        ],
1657    ),
1658    (
1659        "domain",
1660        &["_stack", "Domain", "createDomain", "create", "active"],
1661    ),
1662    (
1663        "fs",
1664        &[
1665            "appendFile",
1666            "appendFileSync",
1667            "access",
1668            "accessSync",
1669            "chown",
1670            "chownSync",
1671            "chmod",
1672            "chmodSync",
1673            "close",
1674            "closeSync",
1675            "copyFile",
1676            "copyFileSync",
1677            "cp",
1678            "cpSync",
1679            "createReadStream",
1680            "createWriteStream",
1681            "exists",
1682            "existsSync",
1683            "fchown",
1684            "fchownSync",
1685            "fchmod",
1686            "fchmodSync",
1687            "fdatasync",
1688            "fdatasyncSync",
1689            "fstat",
1690            "fstatSync",
1691            "fsync",
1692            "fsyncSync",
1693            "ftruncate",
1694            "ftruncateSync",
1695            "futimes",
1696            "futimesSync",
1697            "glob",
1698            "globSync",
1699            "lchown",
1700            "lchownSync",
1701            "lchmod",
1702            "lchmodSync",
1703            "link",
1704            "linkSync",
1705            "lstat",
1706            "lstatSync",
1707            "lutimes",
1708            "lutimesSync",
1709            "mkdir",
1710            "mkdirSync",
1711            "mkdtemp",
1712            "mkdtempSync",
1713            "mkdtempDisposableSync",
1714            "open",
1715            "openSync",
1716            "openAsBlob",
1717            "openAsBlobSync",
1718            "readdir",
1719            "readdirSync",
1720            "read",
1721            "readSync",
1722            "readv",
1723            "readvSync",
1724            "readFile",
1725            "readFileSync",
1726            "readlink",
1727            "readlinkSync",
1728            "realpath",
1729            "realpathSync",
1730            "rename",
1731            "renameSync",
1732            "rm",
1733            "rmSync",
1734            "rmdir",
1735            "rmdirSync",
1736            "stat",
1737            "statfs",
1738            "statSync",
1739            "statfsSync",
1740            "symlink",
1741            "symlinkSync",
1742            "truncate",
1743            "truncateSync",
1744            "unwatchFile",
1745            "unlink",
1746            "unlinkSync",
1747            "utimes",
1748            "utimesSync",
1749            "watch",
1750            "watchFile",
1751            "writeFile",
1752            "writeFileSync",
1753            "write",
1754            "writeSync",
1755            "writev",
1756            "writevSync",
1757            "Dirent",
1758            "Stats",
1759            "ReadStream",
1760            "WriteStream",
1761            "FileReadStream",
1762            "FileWriteStream",
1763            "Utf8Stream",
1764            "_toUnixTimestamp",
1765            "Dir",
1766            "opendir",
1767            "opendirSync",
1768            "constants",
1769            "promises",
1770        ],
1771    ),
1772    (
1773        "fs/promises",
1774        &[
1775            "access",
1776            "copyFile",
1777            "cp",
1778            "glob",
1779            "open",
1780            "opendir",
1781            "rename",
1782            "truncate",
1783            "rm",
1784            "rmdir",
1785            "mkdir",
1786            "readdir",
1787            "readlink",
1788            "symlink",
1789            "lstat",
1790            "stat",
1791            "statfs",
1792            "link",
1793            "unlink",
1794            "chmod",
1795            "lchmod",
1796            "lchown",
1797            "chown",
1798            "utimes",
1799            "lutimes",
1800            "realpath",
1801            "mkdtemp",
1802            "mkdtempDisposable",
1803            "writeFile",
1804            "appendFile",
1805            "readFile",
1806            "watch",
1807            "constants",
1808        ],
1809    ),
1810    (
1811        "http",
1812        &[
1813            "_connectionListener",
1814            "METHODS",
1815            "STATUS_CODES",
1816            "Agent",
1817            "ClientRequest",
1818            "IncomingMessage",
1819            "OutgoingMessage",
1820            "Server",
1821            "ServerResponse",
1822            "createServer",
1823            "isValidHeaderName",
1824            "isValidHeaderValue",
1825            "validateHeaderName",
1826            "validateHeaderValue",
1827            "get",
1828            "request",
1829            "setMaxIdleHTTPParsers",
1830            "setGlobalProxyFromEnv",
1831            "websocketMask",
1832            "websocketUnmask",
1833            "maxHeaderSize",
1834            "globalAgent",
1835            "WebSocket",
1836            "CloseEvent",
1837            "MessageEvent",
1838        ],
1839    ),
1840    (
1841        "http2",
1842        &[
1843            "connect",
1844            "constants",
1845            "createServer",
1846            "createSecureServer",
1847            "getDefaultSettings",
1848            "getPackedSettings",
1849            "getUnpackedSettings",
1850            "performServerHandshake",
1851            "sensitiveHeaders",
1852            "Http2ServerRequest",
1853            "Http2ServerResponse",
1854        ],
1855    ),
1856    (
1857        "https",
1858        &[
1859            "Agent",
1860            "globalAgent",
1861            "Server",
1862            "createServer",
1863            "get",
1864            "request",
1865        ],
1866    ),
1867    (
1868        "net",
1869        &[
1870            "_createServerHandle",
1871            "_normalizeArgs",
1872            "_TransferredBoundSocket",
1873            "BlockList",
1874            "SocketAddress",
1875            "BoundSocket",
1876            "connect",
1877            "createConnection",
1878            "createServer",
1879            "isIP",
1880            "isIPv4",
1881            "isIPv6",
1882            "Server",
1883            "Socket",
1884            "Stream",
1885            "getDefaultAutoSelectFamily",
1886            "setDefaultAutoSelectFamily",
1887            "getDefaultAutoSelectFamilyAttemptTimeout",
1888            "setDefaultAutoSelectFamilyAttemptTimeout",
1889        ],
1890    ),
1891    (
1892        "os",
1893        &[
1894            "arch",
1895            "availableParallelism",
1896            "cpus",
1897            "endianness",
1898            "freemem",
1899            "getPriority",
1900            "homedir",
1901            "hostname",
1902            "loadavg",
1903            "networkInterfaces",
1904            "platform",
1905            "release",
1906            "setPriority",
1907            "tmpdir",
1908            "totalmem",
1909            "type",
1910            "userInfo",
1911            "uptime",
1912            "version",
1913            "machine",
1914            "constants",
1915            "EOL",
1916            "devNull",
1917        ],
1918    ),
1919    (
1920        "path",
1921        &[
1922            "resolve",
1923            "normalize",
1924            "isAbsolute",
1925            "join",
1926            "relative",
1927            "toNamespacedPath",
1928            "dirname",
1929            "basename",
1930            "extname",
1931            "format",
1932            "parse",
1933            "matchesGlob",
1934            "sep",
1935            "delimiter",
1936            "win32",
1937            "posix",
1938            "_makeLong",
1939        ],
1940    ),
1941    (
1942        "path/win32",
1943        &[
1944            "resolve",
1945            "normalize",
1946            "isAbsolute",
1947            "join",
1948            "relative",
1949            "toNamespacedPath",
1950            "dirname",
1951            "basename",
1952            "extname",
1953            "format",
1954            "parse",
1955            "matchesGlob",
1956            "sep",
1957            "delimiter",
1958            "win32",
1959            "posix",
1960            "_makeLong",
1961        ],
1962    ),
1963    (
1964        "perf_hooks",
1965        &[
1966            "Performance",
1967            "PerformanceEntry",
1968            "PerformanceMark",
1969            "PerformanceMeasure",
1970            "PerformanceObserver",
1971            "PerformanceObserverEntryList",
1972            "PerformanceResourceTiming",
1973            "monitorEventLoopDelay",
1974            "eventLoopUtilization",
1975            "timerify",
1976            "createHistogram",
1977            "createSlidingWindowHistogram",
1978            "importHistogram",
1979            "performance",
1980            "constants",
1981        ],
1982    ),
1983    (
1984        "process",
1985        &[
1986            "version",
1987            "versions",
1988            "arch",
1989            "platform",
1990            "release",
1991            "_rawDebug",
1992            "moduleLoadList",
1993            "binding",
1994            "_linkedBinding",
1995            "_events",
1996            "_eventsCount",
1997            "_maxListeners",
1998            "domain",
1999            "_exiting",
2000            "exitCode",
2001            "config",
2002            "dlopen",
2003            "uptime",
2004            "_getActiveRequests",
2005            "_getActiveHandles",
2006            "getActiveResourcesInfo",
2007            "reallyExit",
2008            "_kill",
2009            "loadEnvFile",
2010            "cpuUsage",
2011            "threadCpuUsage",
2012            "resourceUsage",
2013            "memoryUsage",
2014            "constrainedMemory",
2015            "availableMemory",
2016            "kill",
2017            "exit",
2018            "execve",
2019            "ref",
2020            "unref",
2021            "finalization",
2022            "hrtime",
2023            "openStdin",
2024            "getuid",
2025            "geteuid",
2026            "getgid",
2027            "getegid",
2028            "getgroups",
2029            "allowedNodeEnvironmentFlags",
2030            "features",
2031            "_fatalException",
2032            "setUncaughtExceptionCaptureCallback",
2033            "addUncaughtExceptionCaptureCallback",
2034            "hasUncaughtExceptionCaptureCallback",
2035            "emitWarning",
2036            "nextTick",
2037            "_tickCallback",
2038            "sourceMapsEnabled",
2039            "setSourceMapsEnabled",
2040            "getBuiltinModule",
2041            "_debugProcess",
2042            "_debugEnd",
2043            "_startProfilerIdleNotifier",
2044            "_stopProfilerIdleNotifier",
2045            "stdout",
2046            "stdin",
2047            "stderr",
2048            "abort",
2049            "umask",
2050            "chdir",
2051            "cwd",
2052            "initgroups",
2053            "setgroups",
2054            "setegid",
2055            "seteuid",
2056            "setgid",
2057            "setuid",
2058            "env",
2059            "title",
2060            "argv",
2061            "execArgv",
2062            "pid",
2063            "ppid",
2064            "execPath",
2065            "debugPort",
2066            "argv0",
2067            "_preload_modules",
2068            "report",
2069            "mainModule",
2070        ],
2071    ),
2072    (
2073        "querystring",
2074        &[
2075            "unescapeBuffer",
2076            "unescape",
2077            "escape",
2078            "stringify",
2079            "encode",
2080            "parse",
2081            "decode",
2082        ],
2083    ),
2084    (
2085        "readline",
2086        &[
2087            "Interface",
2088            "clearLine",
2089            "clearScreenDown",
2090            "createInterface",
2091            "cursorTo",
2092            "emitKeypressEvents",
2093            "moveCursor",
2094            "promises",
2095        ],
2096    ),
2097    (
2098        "readline/promises",
2099        &["Interface", "Readline", "createInterface"],
2100    ),
2101    (
2102        "repl",
2103        &[
2104            "start",
2105            "writer",
2106            "REPLServer",
2107            "REPL_MODE_SLOPPY",
2108            "REPL_MODE_STRICT",
2109            "Recoverable",
2110            "isValidSyntax",
2111        ],
2112    ),
2113    (
2114        "stream/consumers",
2115        &["arrayBuffer", "blob", "buffer", "bytes", "text", "json"],
2116    ),
2117    ("stream/promises", &["finished", "pipeline"]),
2118    ("string_decoder", &["StringDecoder"]),
2119    (
2120        "timers",
2121        &[
2122            "setTimeout",
2123            "clearTimeout",
2124            "setImmediate",
2125            "clearImmediate",
2126            "setInterval",
2127            "clearInterval",
2128            "promises",
2129        ],
2130    ),
2131    (
2132        "timers/promises",
2133        &["setTimeout", "setImmediate", "setInterval", "scheduler"],
2134    ),
2135    (
2136        "tls",
2137        &[
2138            "CLIENT_RENEG_LIMIT",
2139            "CLIENT_RENEG_WINDOW",
2140            "DEFAULT_CIPHERS",
2141            "DEFAULT_ECDH_CURVE",
2142            "DEFAULT_MIN_VERSION",
2143            "DEFAULT_MAX_VERSION",
2144            "getCiphers",
2145            "getCertificateCompressionAlgorithms",
2146            "rootCertificates",
2147            "getCACertificates",
2148            "setDefaultCACertificates",
2149            "convertALPNProtocols",
2150            "checkServerIdentity",
2151            "createSecureContext",
2152            "SecureContext",
2153            "TLSSocket",
2154            "Server",
2155            "createServer",
2156            "connect",
2157        ],
2158    ),
2159    ("trace_events", &["createTracing", "getEnabledCategories"]),
2160    ("tty", &["isatty", "ReadStream", "WriteStream"]),
2161    (
2162        "url",
2163        &[
2164            "Url",
2165            "parse",
2166            "resolve",
2167            "resolveObject",
2168            "format",
2169            "URL",
2170            "URLPattern",
2171            "URLSearchParams",
2172            "domainToASCII",
2173            "domainToUnicode",
2174            "pathToFileURL",
2175            "fileURLToPath",
2176            "fileURLToPathBuffer",
2177            "urlToHttpOptions",
2178        ],
2179    ),
2180    (
2181        "util",
2182        &[
2183            "_errnoException",
2184            "_exceptionWithHostPort",
2185            "_extend",
2186            "callbackify",
2187            "convertProcessSignalToExitCode",
2188            "debug",
2189            "debuglog",
2190            "deprecate",
2191            "format",
2192            "styleText",
2193            "formatWithOptions",
2194            "getCallSites",
2195            "getSystemErrorMap",
2196            "getSystemErrorName",
2197            "getSystemErrorMessage",
2198            "inherits",
2199            "inspect",
2200            "isArray",
2201            "isDeepStrictEqual",
2202            "isPartialDeepStrictEqual",
2203            "markPromiseAsHandled",
2204            "promisify",
2205            "stripVTControlCharacters",
2206            "toUSVString",
2207            "transferableAbortSignal",
2208            "transferableAbortController",
2209            "aborted",
2210            "types",
2211            "parseEnv",
2212            "parseArgs",
2213            "TextDecoder",
2214            "TextEncoder",
2215            "MIMEType",
2216            "MIMEParams",
2217            "diff",
2218            "debounce",
2219            "throttle",
2220            "setTraceSigInt",
2221        ],
2222    ),
2223    (
2224        "util/types",
2225        &[
2226            "isArgumentsObject",
2227            "isArrayBuffer",
2228            "isAsyncFunction",
2229            "isBigIntObject",
2230            "isBooleanObject",
2231            "isDate",
2232            "isExternal",
2233            "isGeneratorFunction",
2234            "isGeneratorObject",
2235            "isMap",
2236            "isMapIterator",
2237            "isModuleNamespaceObject",
2238            "isNativeError",
2239            "isNumberObject",
2240            "isPromise",
2241            "isProxy",
2242            "isRegExp",
2243            "isSet",
2244            "isSetIterator",
2245            "isSharedArrayBuffer",
2246            "isStringObject",
2247            "isSymbolObject",
2248            "isWeakMap",
2249            "isWeakSet",
2250            "isAnyArrayBuffer",
2251            "isBoxedPrimitive",
2252            "isArrayBufferView",
2253            "isDataView",
2254            "isTypedArray",
2255            "isUint8Array",
2256            "isUint8ClampedArray",
2257            "isUint16Array",
2258            "isUint32Array",
2259            "isInt8Array",
2260            "isInt16Array",
2261            "isInt32Array",
2262            "isFloat16Array",
2263            "isFloat32Array",
2264            "isFloat64Array",
2265            "isBigInt64Array",
2266            "isBigUint64Array",
2267            "isKeyObject",
2268            "isCryptoKey",
2269        ],
2270    ),
2271    (
2272        "v8",
2273        &[
2274            "cachedDataVersionTag",
2275            "getHeapSnapshot",
2276            "getHeapStatistics",
2277            "getHeapSpaceStatistics",
2278            "getHeapCodeStatistics",
2279            "getCppHeapStatistics",
2280            "setFlagsFromString",
2281            "Serializer",
2282            "Deserializer",
2283            "DefaultSerializer",
2284            "DefaultDeserializer",
2285            "deserialize",
2286            "takeCoverage",
2287            "stopCoverage",
2288            "serialize",
2289            "writeHeapSnapshot",
2290            "promiseHooks",
2291            "queryObjects",
2292            "startupSnapshot",
2293            "setHeapSnapshotNearHeapLimit",
2294            "setHeapProfileNearHeapLimit",
2295            "GCProfiler",
2296            "isStringOneByteRepresentation",
2297            "startCpuProfile",
2298            "startHeapProfile",
2299        ],
2300    ),
2301    (
2302        "vm",
2303        &[
2304            "Script",
2305            "createContext",
2306            "createScript",
2307            "runInContext",
2308            "runInNewContext",
2309            "runInThisContext",
2310            "isContext",
2311            "compileFunction",
2312            "measureMemory",
2313            "constants",
2314        ],
2315    ),
2316    (
2317        "worker_threads",
2318        &[
2319            "isInternalThread",
2320            "isMainThread",
2321            "MessagePort",
2322            "MessageChannel",
2323            "markAsUncloneable",
2324            "markAsUntransferable",
2325            "isMarkedAsUntransferable",
2326            "moveMessagePortToContext",
2327            "receiveMessageOnPort",
2328            "resourceLimits",
2329            "postMessageToThread",
2330            "threadId",
2331            "threadName",
2332            "SHARE_ENV",
2333            "Worker",
2334            "parentPort",
2335            "workerData",
2336            "BroadcastChannel",
2337            "setEnvironmentData",
2338            "getEnvironmentData",
2339            "locks",
2340        ],
2341    ),
2342    (
2343        "zlib",
2344        &[
2345            "crc32",
2346            "Deflate",
2347            "Inflate",
2348            "Gzip",
2349            "Gunzip",
2350            "DeflateRaw",
2351            "InflateRaw",
2352            "Unzip",
2353            "BrotliCompress",
2354            "BrotliDecompress",
2355            "ZstdCompress",
2356            "ZstdDecompress",
2357            "deflate",
2358            "deflateSync",
2359            "gzip",
2360            "gzipSync",
2361            "deflateRaw",
2362            "deflateRawSync",
2363            "unzip",
2364            "unzipSync",
2365            "inflate",
2366            "inflateSync",
2367            "gunzip",
2368            "gunzipSync",
2369            "inflateRaw",
2370            "inflateRawSync",
2371            "brotliCompress",
2372            "brotliCompressSync",
2373            "brotliDecompress",
2374            "brotliDecompressSync",
2375            "zstdCompress",
2376            "zstdCompressSync",
2377            "zstdDecompress",
2378            "zstdDecompressSync",
2379            "createDeflate",
2380            "createInflate",
2381            "createDeflateRaw",
2382            "createInflateRaw",
2383            "createGzip",
2384            "createGunzip",
2385            "createUnzip",
2386            "createBrotliCompress",
2387            "createBrotliDecompress",
2388            "createZstdCompress",
2389            "createZstdDecompress",
2390            "constants",
2391            "codes",
2392            "ZipEntry",
2393            "ZipFile",
2394            "ZipBuffer",
2395            "createZipArchive",
2396            "createZipArchiveSync",
2397            "zipFiles",
2398            "getMaxZipContentSize",
2399            "setMaxZipContentSize",
2400        ],
2401    ),
2402];
2403
2404/// The own string keys of each modelled web/node class prototype, in node's
2405/// order (`Object.getOwnPropertyNames(C.prototype)`), by class name; sorted
2406/// by class, the names within a row are not.
2407pub const CLASS_PROTO_ORDER: &[(&str, &[&str])] = &[
2408    ("AbortController", &["constructor", "signal", "abort"]),
2409    (
2410        "AbortSignal",
2411        &[
2412            "constructor",
2413            "aborted",
2414            "reason",
2415            "throwIfAborted",
2416            "onabort",
2417        ],
2418    ),
2419    (
2420        "ByteLengthQueuingStrategy",
2421        &["constructor", "highWaterMark", "size"],
2422    ),
2423    (
2424        "CompressionStream",
2425        &["constructor", "readable", "writable"],
2426    ),
2427    (
2428        "CountQueuingStrategy",
2429        &["constructor", "highWaterMark", "size"],
2430    ),
2431    (
2432        "Crypto",
2433        &["constructor", "subtle", "getRandomValues", "randomUUID"],
2434    ),
2435    (
2436        "CryptoKey",
2437        &["constructor", "type", "extractable", "algorithm", "usages"],
2438    ),
2439    ("CustomEvent", &["constructor", "detail"]),
2440    (
2441        "DecompressionStream",
2442        &["constructor", "readable", "writable"],
2443    ),
2444    (
2445        "Event",
2446        &[
2447            "constructor",
2448            "initEvent",
2449            "stopImmediatePropagation",
2450            "preventDefault",
2451            "target",
2452            "currentTarget",
2453            "srcElement",
2454            "type",
2455            "cancelable",
2456            "defaultPrevented",
2457            "timeStamp",
2458            "composedPath",
2459            "returnValue",
2460            "bubbles",
2461            "composed",
2462            "eventPhase",
2463            "cancelBubble",
2464            "stopPropagation",
2465            "isTrusted",
2466        ],
2467    ),
2468    (
2469        "EventEmitter",
2470        &[
2471            "constructor",
2472            "_events",
2473            "_eventsCount",
2474            "_maxListeners",
2475            "setMaxListeners",
2476            "getMaxListeners",
2477            "emit",
2478            "addListener",
2479            "on",
2480            "prependListener",
2481            "once",
2482            "prependOnceListener",
2483            "removeListener",
2484            "off",
2485            "removeAllListeners",
2486            "listeners",
2487            "rawListeners",
2488            "listenerCount",
2489            "eventNames",
2490        ],
2491    ),
2492    (
2493        "EventTarget",
2494        &[
2495            "constructor",
2496            "addEventListener",
2497            "removeEventListener",
2498            "dispatchEvent",
2499        ],
2500    ),
2501    (
2502        "Performance",
2503        &[
2504            "constructor",
2505            "clearMarks",
2506            "clearMeasures",
2507            "clearResourceTimings",
2508            "getEntries",
2509            "getEntriesByName",
2510            "getEntriesByType",
2511            "mark",
2512            "measure",
2513            "now",
2514            "setResourceTimingBufferSize",
2515            "timeOrigin",
2516            "toJSON",
2517            "eventLoopUtilization",
2518            "nodeTiming",
2519            "markResourceTiming",
2520            "timerify",
2521            "onresourcetimingbufferfull",
2522        ],
2523    ),
2524    (
2525        "ReadableByteStreamController",
2526        &[
2527            "constructor",
2528            "byobRequest",
2529            "desiredSize",
2530            "close",
2531            "enqueue",
2532            "error",
2533        ],
2534    ),
2535    (
2536        "ReadableStream",
2537        &[
2538            "constructor",
2539            "locked",
2540            "cancel",
2541            "getReader",
2542            "pipeThrough",
2543            "pipeTo",
2544            "tee",
2545            "values",
2546        ],
2547    ),
2548    (
2549        "ReadableStreamBYOBReader",
2550        &["constructor", "read", "releaseLock", "closed", "cancel"],
2551    ),
2552    (
2553        "ReadableStreamBYOBRequest",
2554        &["constructor", "view", "respond", "respondWithNewView"],
2555    ),
2556    (
2557        "ReadableStreamDefaultController",
2558        &["constructor", "desiredSize", "close", "enqueue", "error"],
2559    ),
2560    (
2561        "ReadableStreamDefaultReader",
2562        &["constructor", "read", "releaseLock", "closed", "cancel"],
2563    ),
2564    (
2565        "SubtleCrypto",
2566        &[
2567            "constructor",
2568            "encrypt",
2569            "decrypt",
2570            "sign",
2571            "verify",
2572            "digest",
2573            "generateKey",
2574            "deriveKey",
2575            "deriveBits",
2576            "importKey",
2577            "exportKey",
2578            "wrapKey",
2579            "unwrapKey",
2580            "getPublicKey",
2581            "encapsulateBits",
2582            "encapsulateKey",
2583            "decapsulateBits",
2584            "decapsulateKey",
2585        ],
2586    ),
2587    (
2588        "TextDecoderStream",
2589        &[
2590            "constructor",
2591            "encoding",
2592            "fatal",
2593            "ignoreBOM",
2594            "readable",
2595            "writable",
2596        ],
2597    ),
2598    (
2599        "TextEncoderStream",
2600        &["constructor", "encoding", "readable", "writable"],
2601    ),
2602    ("TransformStream", &["constructor", "readable", "writable"]),
2603    (
2604        "TransformStreamDefaultController",
2605        &[
2606            "constructor",
2607            "desiredSize",
2608            "enqueue",
2609            "error",
2610            "terminate",
2611        ],
2612    ),
2613    (
2614        "WritableStream",
2615        &["constructor", "locked", "abort", "close", "getWriter"],
2616    ),
2617    (
2618        "WritableStreamDefaultController",
2619        &["constructor", "signal", "error"],
2620    ),
2621    (
2622        "WritableStreamDefaultWriter",
2623        &[
2624            "constructor",
2625            "closed",
2626            "desiredSize",
2627            "ready",
2628            "abort",
2629            "close",
2630            "releaseLock",
2631            "write",
2632        ],
2633    ),
2634];
2635
2636/// `(key, name, length)` of each modelled class prototype's methods, keyed
2637/// `@proto:<Class>:<method>` by the class's NAME; sorted by key.
2638pub const CLASS_PROTO_ARITY: &[(&str, &str, u32)] = &[
2639    ("@proto:AbortController:abort", "abort", 0),
2640    ("@proto:AbortSignal:throwIfAborted", "throwIfAborted", 0),
2641    ("@proto:Crypto:getRandomValues", "getRandomValues", 1),
2642    ("@proto:Crypto:randomUUID", "randomUUID", 0),
2643    ("@proto:Event:composedPath", "composedPath", 0),
2644    ("@proto:Event:initEvent", "initEvent", 1),
2645    ("@proto:Event:preventDefault", "preventDefault", 0),
2646    (
2647        "@proto:Event:stopImmediatePropagation",
2648        "stopImmediatePropagation",
2649        0,
2650    ),
2651    ("@proto:Event:stopPropagation", "stopPropagation", 0),
2652    ("@proto:EventEmitter:addListener", "addListener", 2),
2653    ("@proto:EventEmitter:emit", "emit", 1),
2654    ("@proto:EventEmitter:eventNames", "eventNames", 0),
2655    ("@proto:EventEmitter:getMaxListeners", "getMaxListeners", 0),
2656    ("@proto:EventEmitter:listenerCount", "listenerCount", 2),
2657    ("@proto:EventEmitter:listeners", "listeners", 1),
2658    ("@proto:EventEmitter:off", "removeListener", 2),
2659    ("@proto:EventEmitter:on", "addListener", 2),
2660    ("@proto:EventEmitter:once", "once", 2),
2661    ("@proto:EventEmitter:prependListener", "prependListener", 2),
2662    (
2663        "@proto:EventEmitter:prependOnceListener",
2664        "prependOnceListener",
2665        2,
2666    ),
2667    ("@proto:EventEmitter:rawListeners", "rawListeners", 1),
2668    (
2669        "@proto:EventEmitter:removeAllListeners",
2670        "removeAllListeners",
2671        1,
2672    ),
2673    ("@proto:EventEmitter:removeListener", "removeListener", 2),
2674    ("@proto:EventEmitter:setMaxListeners", "setMaxListeners", 1),
2675    ("@proto:EventTarget:addEventListener", "addEventListener", 2),
2676    ("@proto:EventTarget:dispatchEvent", "dispatchEvent", 1),
2677    (
2678        "@proto:EventTarget:removeEventListener",
2679        "removeEventListener",
2680        2,
2681    ),
2682    ("@proto:Performance:clearMarks", "clearMarks", 0),
2683    ("@proto:Performance:clearMeasures", "clearMeasures", 0),
2684    (
2685        "@proto:Performance:clearResourceTimings",
2686        "clearResourceTimings",
2687        0,
2688    ),
2689    (
2690        "@proto:Performance:eventLoopUtilization",
2691        "eventLoopUtilization",
2692        2,
2693    ),
2694    ("@proto:Performance:getEntries", "getEntries", 0),
2695    ("@proto:Performance:getEntriesByName", "getEntriesByName", 1),
2696    ("@proto:Performance:getEntriesByType", "getEntriesByType", 1),
2697    ("@proto:Performance:mark", "mark", 1),
2698    (
2699        "@proto:Performance:markResourceTiming",
2700        "markResourceTiming",
2701        7,
2702    ),
2703    ("@proto:Performance:measure", "measure", 1),
2704    ("@proto:Performance:now", "now", 0),
2705    (
2706        "@proto:Performance:setResourceTimingBufferSize",
2707        "setResourceTimingBufferSize",
2708        1,
2709    ),
2710    ("@proto:Performance:timerify", "timerify", 1),
2711    ("@proto:Performance:toJSON", "toJSON", 0),
2712    ("@proto:ReadableByteStreamController:close", "close", 0),
2713    ("@proto:ReadableByteStreamController:enqueue", "enqueue", 1),
2714    ("@proto:ReadableByteStreamController:error", "error", 0),
2715    ("@proto:ReadableStream:cancel", "cancel", 0),
2716    ("@proto:ReadableStream:getReader", "getReader", 0),
2717    ("@proto:ReadableStream:pipeThrough", "pipeThrough", 1),
2718    ("@proto:ReadableStream:pipeTo", "pipeTo", 1),
2719    ("@proto:ReadableStream:tee", "tee", 0),
2720    ("@proto:ReadableStream:values", "values", 0),
2721    ("@proto:ReadableStreamBYOBReader:cancel", "cancel", 0),
2722    ("@proto:ReadableStreamBYOBReader:read", "read", 1),
2723    (
2724        "@proto:ReadableStreamBYOBReader:releaseLock",
2725        "releaseLock",
2726        0,
2727    ),
2728    ("@proto:ReadableStreamBYOBRequest:respond", "respond", 1),
2729    (
2730        "@proto:ReadableStreamBYOBRequest:respondWithNewView",
2731        "respondWithNewView",
2732        1,
2733    ),
2734    ("@proto:ReadableStreamDefaultController:close", "close", 0),
2735    (
2736        "@proto:ReadableStreamDefaultController:enqueue",
2737        "enqueue",
2738        0,
2739    ),
2740    ("@proto:ReadableStreamDefaultController:error", "error", 0),
2741    ("@proto:ReadableStreamDefaultReader:cancel", "cancel", 0),
2742    ("@proto:ReadableStreamDefaultReader:read", "read", 0),
2743    (
2744        "@proto:ReadableStreamDefaultReader:releaseLock",
2745        "releaseLock",
2746        0,
2747    ),
2748    ("@proto:SubtleCrypto:decapsulateBits", "decapsulateBits", 3),
2749    ("@proto:SubtleCrypto:decapsulateKey", "decapsulateKey", 6),
2750    ("@proto:SubtleCrypto:decrypt", "decrypt", 3),
2751    ("@proto:SubtleCrypto:deriveBits", "deriveBits", 2),
2752    ("@proto:SubtleCrypto:deriveKey", "deriveKey", 5),
2753    ("@proto:SubtleCrypto:digest", "digest", 2),
2754    ("@proto:SubtleCrypto:encapsulateBits", "encapsulateBits", 2),
2755    ("@proto:SubtleCrypto:encapsulateKey", "encapsulateKey", 5),
2756    ("@proto:SubtleCrypto:encrypt", "encrypt", 3),
2757    ("@proto:SubtleCrypto:exportKey", "exportKey", 2),
2758    ("@proto:SubtleCrypto:generateKey", "generateKey", 3),
2759    ("@proto:SubtleCrypto:getPublicKey", "getPublicKey", 2),
2760    ("@proto:SubtleCrypto:importKey", "importKey", 5),
2761    ("@proto:SubtleCrypto:sign", "sign", 3),
2762    ("@proto:SubtleCrypto:unwrapKey", "unwrapKey", 7),
2763    ("@proto:SubtleCrypto:verify", "verify", 4),
2764    ("@proto:SubtleCrypto:wrapKey", "wrapKey", 4),
2765    (
2766        "@proto:TransformStreamDefaultController:enqueue",
2767        "enqueue",
2768        0,
2769    ),
2770    ("@proto:TransformStreamDefaultController:error", "error", 0),
2771    (
2772        "@proto:TransformStreamDefaultController:terminate",
2773        "terminate",
2774        0,
2775    ),
2776    ("@proto:WritableStream:abort", "abort", 0),
2777    ("@proto:WritableStream:close", "close", 0),
2778    ("@proto:WritableStream:getWriter", "getWriter", 0),
2779    ("@proto:WritableStreamDefaultController:error", "error", 0),
2780    ("@proto:WritableStreamDefaultWriter:abort", "abort", 0),
2781    ("@proto:WritableStreamDefaultWriter:close", "close", 0),
2782    (
2783        "@proto:WritableStreamDefaultWriter:releaseLock",
2784        "releaseLock",
2785        0,
2786    ),
2787    ("@proto:WritableStreamDefaultWriter:write", "write", 0),
2788];
2789
2790/// The own symbol-keyed properties of the core-module functions:
2791/// `(key, symbol, accessor, enumerable, writable, configurable)`. The symbol
2792/// is `@@<name>` for a well-known one, `for:<key>` for one in the
2793/// `Symbol.for` registry; `accessor` marks a getter (`writable` is then
2794/// meaningless). Sorted by key.
2795pub const CORE_SYMBOL_PROPS: &[(&str, &str, bool, bool, bool, bool)] = &[
2796    (
2797        "Stream.finished",
2798        "for:nodejs.util.promisify.custom",
2799        true,
2800        true,
2801        false,
2802        false,
2803    ),
2804    (
2805        "Stream.pipeline",
2806        "for:nodejs.util.promisify.custom",
2807        true,
2808        true,
2809        false,
2810        false,
2811    ),
2812    (
2813        "child_process.exec",
2814        "for:nodejs.util.promisify.custom",
2815        false,
2816        false,
2817        false,
2818        false,
2819    ),
2820    (
2821        "child_process.execFile",
2822        "for:nodejs.util.promisify.custom",
2823        false,
2824        false,
2825        false,
2826        false,
2827    ),
2828    (
2829        "fs.exists",
2830        "for:nodejs.util.promisify.custom",
2831        false,
2832        false,
2833        false,
2834        false,
2835    ),
2836    (
2837        "fs/promises.opendir",
2838        "for:nodejs.util.promisify.custom",
2839        false,
2840        false,
2841        false,
2842        true,
2843    ),
2844    (
2845        "http2.connect",
2846        "for:nodejs.util.promisify.custom",
2847        false,
2848        false,
2849        false,
2850        false,
2851    ),
2852    ("os.arch", "@@toPrimitive", false, true, true, true),
2853    (
2854        "os.availableParallelism",
2855        "@@toPrimitive",
2856        false,
2857        true,
2858        true,
2859        true,
2860    ),
2861    ("os.endianness", "@@toPrimitive", false, true, true, true),
2862    ("os.freemem", "@@toPrimitive", false, true, true, true),
2863    ("os.homedir", "@@toPrimitive", false, true, true, true),
2864    ("os.hostname", "@@toPrimitive", false, true, true, true),
2865    ("os.machine", "@@toPrimitive", false, true, true, true),
2866    ("os.platform", "@@toPrimitive", false, true, true, true),
2867    ("os.release", "@@toPrimitive", false, true, true, true),
2868    ("os.tmpdir", "@@toPrimitive", false, true, true, true),
2869    ("os.totalmem", "@@toPrimitive", false, true, true, true),
2870    ("os.type", "@@toPrimitive", false, true, true, true),
2871    ("os.uptime", "@@toPrimitive", false, true, true, true),
2872    ("os.version", "@@toPrimitive", false, true, true, true),
2873    (
2874        "timers.setImmediate",
2875        "for:nodejs.util.promisify.custom",
2876        true,
2877        true,
2878        false,
2879        false,
2880    ),
2881    (
2882        "timers.setTimeout",
2883        "for:nodejs.util.promisify.custom",
2884        true,
2885        true,
2886        false,
2887        false,
2888    ),
2889];
2890
2891/// Each core module's ACCESSOR exports:
2892/// `(namespace, key, has_setter, enumerable, configurable, getter_name,
2893/// setter_name)`, keyed by namespace spelling. Sorted by namespace, then key.
2894pub const CORE_ACCESSOR_EXPORTS: &[(&str, &str, bool, bool, bool, &str, &str)] = &[
2895    (
2896        "EventEmitter",
2897        "EventEmitterAsyncResource",
2898        false,
2899        true,
2900        true,
2901        "lazyEventEmitterAsyncResource",
2902        "",
2903    ),
2904    (
2905        "EventEmitter",
2906        "captureRejections",
2907        true,
2908        true,
2909        false,
2910        "get",
2911        "set",
2912    ),
2913    (
2914        "EventEmitter",
2915        "defaultMaxListeners",
2916        true,
2917        true,
2918        false,
2919        "get",
2920        "set",
2921    ),
2922    ("Stream", "promises", false, true, true, "get", ""),
2923    (
2924        "async_hooks",
2925        "AsyncLocalStorage",
2926        false,
2927        true,
2928        true,
2929        "get AsyncLocalStorage",
2930        "",
2931    ),
2932    (
2933        "buffer",
2934        "INSPECT_MAX_BYTES",
2935        true,
2936        true,
2937        true,
2938        "get",
2939        "set",
2940    ),
2941    ("console", "_stderr", true, false, true, "get", "set"),
2942    ("console", "_stdout", true, false, true, "get", "set"),
2943    (
2944        "crypto",
2945        "fips",
2946        true,
2947        false,
2948        false,
2949        "deprecated",
2950        "deprecated",
2951    ),
2952    ("crypto", "getRandomValues", false, true, false, "get", ""),
2953    ("crypto", "subtle", false, true, false, "get", ""),
2954    ("crypto", "webcrypto", false, true, false, "get", ""),
2955    ("dns", "promises", false, true, true, "get", ""),
2956    (
2957        "fs",
2958        "FileReadStream",
2959        true,
2960        true,
2961        true,
2962        "get FileReadStream",
2963        "set FileReadStream",
2964    ),
2965    (
2966        "fs",
2967        "FileWriteStream",
2968        true,
2969        true,
2970        true,
2971        "get FileWriteStream",
2972        "set FileWriteStream",
2973    ),
2974    (
2975        "fs",
2976        "ReadStream",
2977        true,
2978        true,
2979        true,
2980        "get ReadStream",
2981        "set ReadStream",
2982    ),
2983    ("fs", "Utf8Stream", false, true, true, "get Utf8Stream", ""),
2984    (
2985        "fs",
2986        "WriteStream",
2987        true,
2988        true,
2989        true,
2990        "get WriteStream",
2991        "set WriteStream",
2992    ),
2993    ("fs", "promises", false, true, true, "get", ""),
2994    ("http", "CloseEvent", false, true, true, "get", ""),
2995    ("http", "MessageEvent", false, true, true, "get", ""),
2996    ("http", "WebSocket", false, true, true, "get", ""),
2997    ("http", "globalAgent", true, true, true, "get", "set"),
2998    ("http", "maxHeaderSize", false, true, true, "get", ""),
2999    ("net", "BlockList", false, true, true, "get BlockList", ""),
3000    (
3001        "net",
3002        "SocketAddress",
3003        false,
3004        true,
3005        true,
3006        "get SocketAddress",
3007        "",
3008    ),
3009    ("process", "_exiting", true, true, true, "get", "set"),
3010    ("process", "domain", true, true, true, "get", "set"),
3011    ("process", "exitCode", true, true, false, "get", "set"),
3012    ("process", "finalization", true, true, true, "get", "set"),
3013    ("process", "report", false, true, true, "get", ""),
3014    ("process", "sourceMapsEnabled", false, true, true, "get", ""),
3015    ("process", "stderr", false, true, true, "getStderr", ""),
3016    ("process", "stdin", false, true, true, "getStdin", ""),
3017    ("process", "stdout", false, true, true, "getStdout", ""),
3018    ("repl", "_builtinLibs", true, false, true, "", ""),
3019    ("repl", "builtinModules", true, false, true, "", ""),
3020    ("timers", "promises", false, true, true, "get", ""),
3021    (
3022        "tls",
3023        "rootCertificates",
3024        false,
3025        true,
3026        false,
3027        "cacheBundledRootCertificates",
3028        "",
3029    ),
3030    ("util", "aborted", false, true, true, "get aborted", ""),
3031    ("util", "debounce", false, true, true, "get", ""),
3032    ("util", "throttle", false, true, true, "get", ""),
3033    (
3034        "util",
3035        "transferableAbortController",
3036        false,
3037        true,
3038        true,
3039        "get transferableAbortController",
3040        "",
3041    ),
3042    (
3043        "util",
3044        "transferableAbortSignal",
3045        false,
3046        true,
3047        true,
3048        "get transferableAbortSignal",
3049        "",
3050    ),
3051];
3052
3053/// For each emitter-backed native class (by tag), the `EventEmitter` methods
3054/// its prototype chain OVERRIDES instead of inheriting from
3055/// `EventEmitter.prototype`. Sorted by tag; the names within a row are not.
3056pub const EMITTER_OVERRIDES: &[(&str, &[&str])] = &[
3057    (
3058        "ChildPipe",
3059        &[
3060            "addListener",
3061            "on",
3062            "removeListener",
3063            "off",
3064            "removeAllListeners",
3065            "eventNames",
3066        ],
3067    ),
3068    ("ChildProcess", &[]),
3069    ("ClientRequest", &["eventNames"]),
3070    ("ClusterWorker", &[]),
3071    ("Domain", &[]),
3072    (
3073        "Duplex",
3074        &[
3075            "addListener",
3076            "on",
3077            "removeListener",
3078            "off",
3079            "removeAllListeners",
3080            "eventNames",
3081        ],
3082    ),
3083    ("EventEmitter", &[]),
3084    (
3085        "FSReadStream",
3086        &[
3087            "addListener",
3088            "on",
3089            "removeListener",
3090            "off",
3091            "removeAllListeners",
3092            "eventNames",
3093        ],
3094    ),
3095    ("FSWriteStream", &["eventNames"]),
3096    ("HTTPSClientRequest", &["eventNames"]),
3097    ("HTTPSServerResponse", &["eventNames"]),
3098    (
3099        "IncomingMessage",
3100        &[
3101            "addListener",
3102            "on",
3103            "removeListener",
3104            "off",
3105            "removeAllListeners",
3106            "eventNames",
3107        ],
3108    ),
3109    (
3110        "MessagePort",
3111        &[
3112            "setMaxListeners",
3113            "getMaxListeners",
3114            "emit",
3115            "addListener",
3116            "on",
3117            "prependListener",
3118            "once",
3119            "prependOnceListener",
3120            "removeListener",
3121            "off",
3122            "removeAllListeners",
3123            "listeners",
3124            "rawListeners",
3125            "listenerCount",
3126            "eventNames",
3127        ],
3128    ),
3129    (
3130        "PassThrough",
3131        &[
3132            "addListener",
3133            "on",
3134            "removeListener",
3135            "off",
3136            "removeAllListeners",
3137            "eventNames",
3138        ],
3139    ),
3140    (
3141        "Readable",
3142        &[
3143            "addListener",
3144            "on",
3145            "removeListener",
3146            "off",
3147            "removeAllListeners",
3148            "eventNames",
3149        ],
3150    ),
3151    ("Server", &[]),
3152    ("ServerResponse", &["eventNames"]),
3153    (
3154        "Socket",
3155        &[
3156            "addListener",
3157            "on",
3158            "removeListener",
3159            "off",
3160            "removeAllListeners",
3161            "eventNames",
3162        ],
3163    ),
3164    ("Stream", &["eventNames"]),
3165    ("TLSServer", &[]),
3166    (
3167        "TLSSocket",
3168        &[
3169            "addListener",
3170            "on",
3171            "removeListener",
3172            "off",
3173            "removeAllListeners",
3174            "eventNames",
3175        ],
3176    ),
3177    (
3178        "Transform",
3179        &[
3180            "addListener",
3181            "on",
3182            "removeListener",
3183            "off",
3184            "removeAllListeners",
3185            "eventNames",
3186        ],
3187    ),
3188    ("UdpSocket", &[]),
3189    ("Worker", &[]),
3190    ("Writable", &["eventNames"]),
3191];