Skip to content

https: make https.globalAgent overridable also under ECMAScript Modules

Under ECMAScript modules when you do "import * as https from 'https'" you get a new object with properties copied from https module exports. So if this is a regular data property, you will just override a copy, but if this would be a accessor property, we can still access the actual https.globalAgent.

Refs: https://github.com/nodejs/node/pull/25170, https://github.com/nodejs/node/pull/9386

Merge request reports

Loading