We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4314dbf commit 899de0aCopy full SHA for 899de0a
src/node.cc
@@ -360,6 +360,12 @@ MaybeLocal<Value> RunBootstrapping(Environment* env) {
360
.IsNothing())
361
return MaybeLocal<Value>();
362
363
+ // Make sure that no request or handle is created during bootstrap -
364
+ // if necessary those should be done in pre-exeuction.
365
+ // TODO(joyeecheung): print handles/requests before aborting
366
+ CHECK(env->req_wrap_queue()->IsEmpty());
367
+ CHECK(env->handle_wrap_queue()->IsEmpty());
368
+
369
env->set_has_run_bootstrapping_code(true);
370
371
return scope.EscapeMaybe(result);
0 commit comments