| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -279,6 +279,7 @@ void StreamReq::Done(int status, const char* error_str) { | |||
| 279 | 279 | AsyncWrap* async_wrap = GetAsyncWrap(); | |
| 280 | 280 | Environment* env = async_wrap->env(); | |
| 281 | 281 | if (error_str != nullptr) { | |
| 282 | + v8::HandleScope handle_scope(env->isolate()); | ||
| 282 | 283 | async_wrap->object()->Set(env->context(), | |
| 283 | 284 | env->error_string(), | |
| 284 | 285 | OneByteString(env->isolate(), error_str)) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,13 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + | ||
| 3 | + const common = require('../common'); | ||
| 4 | + if (!common.hasCrypto) | ||
| 5 | + common.skip('missing crypto'); | ||
| 6 | + | ||
| 7 | + const https = require('https'); | ||
| 8 | + | ||
| 9 | + const request = https.get('https://example.com'); | ||
| 10 | + | ||
| 11 | + request.on('socket', (socket) => { | ||
| 12 | + socket.unref(); | ||
| 13 | + }); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments