diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-11-11 17:24:13 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-03-21 12:57:20 +0300 |
commit | a9fb51f9be570001accfce8a057e885827655a2f (patch) | |
tree | 5a2325de3a8701e57c8532010e43260e503d6417 /src/node_internals.h | |
parent | 084c3796483a15da102480b2c5a1496417b5d7cf (diff) |
src: align worker and main thread code with embedder API
This addresses some long-standing TODOs by Joyee and me about
making the embedder API more powerful and us less reliant on
internal APIs for creating the main thread and Workers.
PR-URL: https://github.com/nodejs/node/pull/30467
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index 7dcbf65f8e6..6c9da144aa9 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -298,6 +298,7 @@ void DefineZlibConstants(v8::Local<v8::Object> target); v8::Isolate* NewIsolate(v8::Isolate::CreateParams* params, uv_loop_t* event_loop, MultiIsolatePlatform* platform); +v8::MaybeLocal<v8::Value> StartExecution(Environment* env); v8::MaybeLocal<v8::Value> StartExecution(Environment* env, const char* main_script_id); v8::MaybeLocal<v8::Object> GetPerContextExports(v8::Local<v8::Context> context); |