https: make https.globalAgent overridable also under ECMAScript Modules #45549
Annotations
2 errors
test-linux:
test/parallel/test-https-client-override-global-agent.mjs#L31
--- stderr ---
file:///home/runner/work/node/node/test/parallel/test-https-client-override-global-agent.mjs:31
https.globalAgent = agent;
^
TypeError: Cannot assign to read only property 'globalAgent' of object '[object Module]'
at Server.<anonymous> (file:///home/runner/work/node/node/test/parallel/test-https-client-override-global-agent.mjs:31:23)
at Server.<anonymous> (/home/runner/work/node/node/test/common/index.js:474:15)
at Object.onceWrapper (node:events:628:28)
at Server.emit (node:events:514:28)
at emitListeningNT (node:net:1906:10)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
Node.js v21.0.0-pre
Command: out/Release/node /home/runner/work/node/node/test/parallel/test-https-client-override-global-agent.mjs
|
test-linux
Process completed with exit code 2.
|