diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index ab3665f03d..d7aa89a5ee 100644 --- a/lib/internal/bootstrap_node.js +++ b/lib/internal/bootstrap_node.js @@ -401,6 +401,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(); }