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:
authorVadim Gorbachev <bmsdave@gmail.com>2019-11-06 19:28:08 +0300
committerRich Trott <rtrott@gmail.com>2019-11-09 01:50:04 +0300
commite7a24a19e84b8d24b4c56a4fd580dfd73a9f73b2 (patch)
treedfda6e7dcaaafe4474df80b6e6f6303168b8e1d1 /src/node_process_object.cc
parentebe3dcc55dd6ac6c7b19651a2551e7af75de1383 (diff)
src: persist strings that are used multiple times in the environment
PR-URL: https://github.com/nodejs/node/pull/30321 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_process_object.cc')
-rw-r--r--src/node_process_object.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_process_object.cc b/src/node_process_object.cc
index 92124503ab9..a1bf90c8d69 100644
--- a/src/node_process_object.cc
+++ b/src/node_process_object.cc
@@ -74,7 +74,7 @@ MaybeLocal<Object> CreateProcessObject(Environment* env) {
Local<Context> context = env->context();
Local<FunctionTemplate> process_template = FunctionTemplate::New(isolate);
- process_template->SetClassName(FIXED_ONE_BYTE_STRING(isolate, "process"));
+ process_template->SetClassName(env->process_string());
Local<Function> process_ctor;
Local<Object> process;
if (!process_template->GetFunction(context).ToLocal(&process_ctor) ||