diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-21 07:47:32 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2020-07-18 06:15:57 +0300 |
commit | 1faf6f459f220bb67866f12b30626ef7856876ee (patch) | |
tree | d1308396c07e8289f8d987178c294141f4687889 /src/api | |
parent | f04538761f5bb3c334d3c8d16d093ac0916ff3bc (diff) |
src: snapshot Environment upon instantiation
This includes the initial Environment (without running bootstrap
scripts) into the builtin snapshot
PR-URL: https://github.com/nodejs/node/pull/32984
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/environment.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/api/environment.cc b/src/api/environment.cc index 1104d758f63..b288ee76469 100644 --- a/src/api/environment.cc +++ b/src/api/environment.cc @@ -350,13 +350,7 @@ Environment* CreateEnvironment( // TODO(addaleax): This is a much better place for parsing per-Environment // options than the global parse call. Environment* env = new Environment( - isolate_data, - context, - args, - exec_args, - flags, - thread_id); - env->InitializeMainContext(context); + isolate_data, context, args, exec_args, nullptr, flags, thread_id); #if HAVE_INSPECTOR if (inspector_parent_handle) { env->InitializeInspector( |