Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGibson Fahnestock <gibfahn@gmail.com>2017-03-26 18:01:31 +0300
committerMyles Borins <mylesborins@google.com>2017-03-29 02:27:51 +0300
commit5bdd54925acecfa3af4fb65bce037cc95193ee17 (patch)
treef132a7123a4f00b08cc197df7e7669ced2705d6e
parentfd93622f8a69fc403f751f9f2166bad39ef233d8 (diff)
lib: add comment to script eval _tickCallback
Add a comment to match lib/module.js, missed in #11958. PR-URL: https://github.com/nodejs/node/pull/12050 Ref: https://github.com/nodejs/node/pull/11958 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
-rw-r--r--lib/internal/bootstrap_node.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js
index 0827326fad7..1aa2f8c23b4 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();
}