summaryrefslogtreecommitdiff
path: root/src/node_process.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_process.h')
-rw-r--r--src/node_process.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/node_process.h b/src/node_process.h
index cb6ad85828..f01445b3c5 100644
--- a/src/node_process.h
+++ b/src/node_process.h
@@ -36,6 +36,16 @@ v8::MaybeLocal<v8::Object> CreateProcessObject(
const std::vector<std::string>& args,
const std::vector<std::string>& exec_args);
void PatchProcessObject(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+namespace task_queue {
+// Handle any nextTicks added in the first tick of the program.
+// We use the native version here for once so that any microtasks
+// created by the main module is then handled from C++, and
+// the call stack of the main script does not show up in the async error
+// stack trace.
+bool RunNextTicksNative(Environment* env);
+} // namespace task_queue
+
} // namespace node
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#endif // SRC_NODE_PROCESS_H_