diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index 0827326fad7782..1aa2f8c23b442a 100644 --- a/lib/internal/bootstrap_node.js +++ b/lib/internal/bootstrap_node.js @@ -386,6 +386,7 @@ `${JSON.stringify(name)}, displayErrors: true });\n`; const result = module._compile(script, `${name}-wrapper`); if (process._print_eval) console.log(result); + // Handle any nextTicks added in the first tick of the program. process._tickCallback(); }