diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-03-20 00:12:23 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-03 08:46:03 +0800 |
commit | 19442656789a7edd327d453a16f699d4f5259a5c (patch) | |
tree | 78ae15e1b70df80d14b7306aea25d9d90973b7fe /src/node.h | |
parent | e02f511dccaf41f103403936359d43ce2ad86d1e (diff) | |
download | node-new-19442656789a7edd327d453a16f699d4f5259a5c.tar.gz |
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.h')
-rw-r--r-- | src/node.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node.h b/src/node.h index 32fd4b288e..039b188f4f 100644 --- a/src/node.h +++ b/src/node.h @@ -311,6 +311,8 @@ NODE_EXTERN void FreeIsolateData(IsolateData* isolate_data); // TODO(addaleax): Add an official variant using STL containers, and move // per-Environment options parsing here. +// Returns nullptr when the Environment cannot be created e.g. there are +// pending JavaScript exceptions. NODE_EXTERN Environment* CreateEnvironment(IsolateData* isolate_data, v8::Local<v8::Context> context, int argc, |