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-04-19 07:50:38 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2019-04-23 06:25:56 +0300
commit70d887e95717a6b89135bf5cfd7b6394f451abe7 (patch)
treebf48961163bca1c6b3863b703ecca00b1af30731 /src/node_internals.h
parentd66c7e347042053740ef8cd54b7ea76eb4de53d5 (diff)
src: allow creating NodeMainInstance that does not own the isolate
Allows instantiating a NodeMainInstance with an isolate whose initialization and disposal are controlled by the caller. PR-URL: https://github.com/nodejs/node/pull/27321 Refs: https://github.com/nodejs/node/issues/17058 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index 3fc6ea07361..fc924e3e163 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -319,6 +319,9 @@ struct InitializationResult {
};
InitializationResult InitializeOncePerProcess(int argc, char** argv);
void TearDownOncePerProcess();
+enum class IsolateSettingCategories { kErrorHandlers, kMisc };
+void SetIsolateUpForNode(v8::Isolate* isolate, IsolateSettingCategories cat);
+void SetIsolateCreateParamsForNode(v8::Isolate::CreateParams* params);
#if HAVE_INSPECTOR
namespace profiler {