summaryrefslogtreecommitdiff
path: root/src/node_process_methods.cc
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-03-20 09:02:57 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-04-04 05:14:54 +0800
commit9dba96dc1a754616c81a550c057ce7cf9552e9cf (patch)
treefbec9fd2a7a51634ac50c849192d8fd0e9f02cbb /src/node_process_methods.cc
parentd005f382cdcec7dff1d61cf5ab3604e55f004471 (diff)
downloadandroid-node-v8-9dba96dc1a754616c81a550c057ce7cf9552e9cf.tar.gz
android-node-v8-9dba96dc1a754616c81a550c057ce7cf9552e9cf.tar.bz2
android-node-v8-9dba96dc1a754616c81a550c057ce7cf9552e9cf.zip
process: patch more process properties during pre-execution
Delay the creation of process properties that depend on runtime states and properties that should not be accessed during bootstrap and patch them during pre-execution: - process.argv - process.execPath - process.title - process.pid - process.ppid - process.REVERT_* - process.debugPort PR-URL: https://github.com/nodejs/node/pull/26945 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'src/node_process_methods.cc')
-rw-r--r--src/node_process_methods.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_process_methods.cc b/src/node_process_methods.cc
index d2ba00b89b..dd27329ee2 100644
--- a/src/node_process_methods.cc
+++ b/src/node_process_methods.cc
@@ -426,6 +426,7 @@ static void InitializeProcessMethods(Local<Object> target,
env->SetMethod(target, "dlopen", binding::DLOpen);
env->SetMethod(target, "reallyExit", ReallyExit);
env->SetMethodNoSideEffect(target, "uptime", Uptime);
+ env->SetMethod(target, "patchProcessObject", PatchProcessObject);
}
} // namespace node