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:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-03-19 19:12:23 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2019-04-03 03:46:03 +0300
commit19442656789a7edd327d453a16f699d4f5259a5c (patch)
tree78ae15e1b70df80d14b7306aea25d9d90973b7fe /src/node_internals.h
parente02f511dccaf41f103403936359d43ce2ad86d1e (diff)
process: run RunBootstrapping in CreateEnvironment
Also creates `CreateMainEnvironment` to encapsulate the code creating the main environment from the provided Isolate data and arguments. PR-URL: https://github.com/nodejs/node/pull/26788 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index 012848491ea..e299d877307 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -302,7 +302,12 @@ v8::MaybeLocal<v8::Value> RunBootstrapping(Environment* env);
v8::MaybeLocal<v8::Value> StartExecution(Environment* env,
const char* main_script_id);
v8::MaybeLocal<v8::Object> GetPerContextExports(v8::Local<v8::Context> context);
-
+v8::MaybeLocal<v8::Value> ExecuteBootstrapper(
+ Environment* env,
+ const char* id,
+ std::vector<v8::Local<v8::String>>* parameters,
+ std::vector<v8::Local<v8::Value>>* arguments);
+void MarkBootstrapComplete(const v8::FunctionCallbackInfo<v8::Value>& args);
namespace profiler {
void StartCoverageCollection(Environment* env);
}