We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9868d54 commit 197dbf6Copy full SHA for 197dbf6
src/node.cc
@@ -358,6 +358,12 @@ 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 handles/requests before aborting
364
+ CHECK(env->req_wrap_queue()->IsEmpty());
365
+ CHECK(env->handle_wrap_queue()->IsEmpty());
366
+
367
env->set_has_run_bootstrapping_code(true);
368
369
return scope.EscapeMaybe(result);
0 commit comments