src: use HandleScope in StreamReq::Done()

Fixes: https://github.com/nodejs/node/issues/38707

PR-URL: https://github.com/nodejs/node/pull/38720
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Darshan Sen authored and Danielle Adams committed 2021-05-31 15:34:50 -04:00
1 parent 2054efa02c
commit 4e3353223e
2 files changed
+14

No files matched your search

@@ -0,0 +1,13 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const https = require('https');
const request = https.get('https://example.com');
request.on('socket', (socket) => {
socket.unref();
});