We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d953fa3 commit 26a596bCopy full SHA for 26a596b
src/spawn_sync.cc
@@ -457,9 +457,17 @@ Maybe<bool> SyncProcessRunner::TryInitializeAndRunLoop(Local<Value> options) {
457
SetError(UV_ENOMEM);
458
return Just(false);
459
}
460
- CHECK_EQ(uv_loop_init(uv_loop_), 0);
+
461
+ r = uv_loop_init(uv_loop_);
462
+ if (r < 0) {
463
+ delete uv_loop_;
464
+ uv_loop_ = nullptr;
465
+ SetError(r);
466
+ return Just(false);
467
+ }
468
469
if (!ParseOptions(options).To(&r)) return Nothing<bool>();
470
471
if (r < 0) {
472
SetError(r);
473
0 commit comments