mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-22 05:59:31 +08:00
Reads of defaultMaxListeners through an ES module namespace import or a named import answer the namespace's copy of the export, which keeps its value from program start until module.syncBuiltinESMExports() refreshes it, as in Node. The default import, the EventEmitter class and CommonJS module bindings keep reading the current default. A destructured CommonJS binding of defaultMaxListeners, which held a placeholder string in JavaScript files, is refused.