We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 470856f commit 6804c0bCopy full SHA for 6804c0b
1 file changed
src/node.cc
@@ -358,6 +358,17 @@ MaybeLocal<Value> RunBootstrapping(Environment* env) {
358
.IsNothing())
359
return MaybeLocal<Value>();
360
361
+ // Make sure that no request or handle is created during bootstrap -
362
+ // if necessary those should be done in pre-exeuction.
363
+ // TODO(joyeecheung): print requests before aborting
364
+ if (env->event_loop()->active_handles > 0) {
365
+ PrintLibuvHandleInformation(env->event_loop(), stderr);
366
+ CHECK_EQ(env->event_loop()->active_handles, 0);
367
+ }
368
+ CHECK(env->req_wrap_queue()->IsEmpty());
369
+ CHECK(env->handle_wrap_queue()->IsEmpty());
370
+ CHECK_EQ(env->event_loop()->active_reqs.count, 0);
371
+
372
env->set_has_run_bootstrapping_code(true);
373
374
return scope.EscapeMaybe(result);
0 commit comments