diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-12-31 23:18:08 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-01-11 20:11:55 +0800 |
commit | 7824280b5827e1aaba067088b195328185525b21 (patch) | |
tree | 7c1971d1ee5ac4a6f02b38e8fb6bfebf5a02c250 /src/node_internals.h | |
parent | 5a15f4bdfa060082757062dc5f39519d93e7b8fb (diff) | |
download | android-node-v8-7824280b5827e1aaba067088b195328185525b21.tar.gz android-node-v8-7824280b5827e1aaba067088b195328185525b21.tar.bz2 android-node-v8-7824280b5827e1aaba067088b195328185525b21.zip |
src: declare process-related C++ methods in node_process.h
Instead of in node_internals.h. Also move process property
accessors that are not reused into node_process_object.cc
and make them static.
PR-URL: https://github.com/nodejs/node/pull/25397
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index a192c519a3..0b0c97f8c8 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -123,10 +123,6 @@ void RegisterSignalHandler(int signal, bool reset_handler = false); #endif -v8::Local<v8::Object> CreateEnvVarProxy(v8::Local<v8::Context> context, - v8::Isolate* isolate, - v8::Local<v8::Value> data); - std::string GetHumanReadableProcessName(); void GetHumanReadableProcessName(char (*name)[1024]); @@ -180,16 +176,6 @@ namespace task_queue { void PromiseRejectCallback(v8::PromiseRejectMessage message); } // namespace task_queue -v8::Maybe<bool> ProcessEmitWarning(Environment* env, const char* fmt, ...); -v8::Maybe<bool> ProcessEmitDeprecationWarning(Environment* env, - const char* warning, - const char* deprecation_code); - -v8::Local<v8::Object> CreateProcessObject( - Environment* env, - const std::vector<std::string>& args, - const std::vector<std::string>& exec_args); - enum Endianness { kLittleEndian, // _Not_ LITTLE_ENDIAN, clashes with endian.h. kBigEndian @@ -697,23 +683,6 @@ static inline const char* errno_string(int errorno) { // Functions defined in node.cc that are exposed via the bootstrapper object -void RawDebug(const v8::FunctionCallbackInfo<v8::Value>& args); - -void DebugPortGetter(v8::Local<v8::Name> property, - const v8::PropertyCallbackInfo<v8::Value>& info); -void DebugPortSetter(v8::Local<v8::Name> property, - v8::Local<v8::Value> value, - const v8::PropertyCallbackInfo<void>& info); - -void GetParentProcessId(v8::Local<v8::Name> property, - const v8::PropertyCallbackInfo<v8::Value>& info); - -void ProcessTitleGetter(v8::Local<v8::Name> property, - const v8::PropertyCallbackInfo<v8::Value>& info); -void ProcessTitleSetter(v8::Local<v8::Name> property, - v8::Local<v8::Value> value, - const v8::PropertyCallbackInfo<void>& info); - #if defined(__POSIX__) && !defined(__ANDROID__) && !defined(__CloudABI__) #define NODE_IMPLEMENTS_POSIX_CREDENTIALS 1 #endif // __POSIX__ && !defined(__ANDROID__) && !defined(__CloudABI__) |