diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index 63a3f1258a..18a3afc4df 100644 --- a/lib/internal/bootstrap_node.js +++ b/lib/internal/bootstrap_node.js @@ -353,6 +353,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(); }