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:
Diffstat (limited to 'src/env.cc')
-rw-r--r--src/env.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/env.cc b/src/env.cc
index a8c2ab63274..9efeaadff14 100644
--- a/src/env.cc
+++ b/src/env.cc
@@ -268,8 +268,10 @@ void Environment::Start(const std::vector<std::string>& args,
auto process_template = FunctionTemplate::New(isolate());
process_template->SetClassName(FIXED_ONE_BYTE_STRING(isolate(), "process"));
- auto process_object =
- process_template->GetFunction()->NewInstance(context()).ToLocalChecked();
+ auto process_object = process_template->GetFunction(context())
+ .ToLocalChecked()
+ ->NewInstance(context())
+ .ToLocalChecked();
set_process_object(process_object);
SetupProcessObject(this, args, exec_args);