Closed
Description
- Version: v10.20.1 v12.16.3 v13.13.0
- Platform: Linux solus 5.6.4-152.current deps: update openssl to 1.0.1j #1 SMP PREEMPT Mon Apr 20 03:18:11 UTC 2020 x86_64 GNU/Linux
- Subsystem: stream
What steps will reproduce the bug?
const https = require('https');
const request = https.get('https://example.com');
request.once('error', () => {});
request.destroy();
console.log(request.destroyed);
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior?
true
What do you see instead?
undefined
Additional information
This is fixed starting Node.js 14.0.0