summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-04-19 12:50:38 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-04-23 11:25:56 +0800
commit70d887e95717a6b89135bf5cfd7b6394f451abe7 (patch)
treebf48961163bca1c6b3863b703ecca00b1af30731 /src/node_internals.h
parentd66c7e347042053740ef8cd54b7ea76eb4de53d5 (diff)
downloadandroid-node-v8-70d887e95717a6b89135bf5cfd7b6394f451abe7.tar.gz
android-node-v8-70d887e95717a6b89135bf5cfd7b6394f451abe7.tar.bz2
android-node-v8-70d887e95717a6b89135bf5cfd7b6394f451abe7.zip
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 3fc6ea0736..fc924e3e16 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 {