diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-06-17 23:03:39 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2018-06-20 20:02:57 +0800 |
commit | 3ff1cb955f0af629b9f020aaf1705cb571ecf84b (patch) | |
tree | 5502b446e26e21d0508ba1656133b0923e4b87f6 | |
parent | ed1035d335d5212f9e225620dd789f7526326fc4 (diff) | |
download | android-node-v8-3ff1cb955f0af629b9f020aaf1705cb571ecf84b.tar.gz android-node-v8-3ff1cb955f0af629b9f020aaf1705cb571ecf84b.tar.bz2 android-node-v8-3ff1cb955f0af629b9f020aaf1705cb571ecf84b.zip |
process: remove unused arguments in setup()
PR-URL: https://github.com/nodejs/node/pull/21377
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
-rw-r--r-- | lib/internal/bootstrap/node.js | 4 | ||||
-rw-r--r-- | lib/internal/process/methods.js | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index b6233b17e2..9652970958 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -54,10 +54,6 @@ _setupPromises); NativeModule.require('internal/process/stdio').setup(); NativeModule.require('internal/process/methods').setup(_chdir, - _cpuUsage, - _hrtime, - _memoryUsage, - _rawDebug, _umask, _initgroups, _setegid, diff --git a/lib/internal/process/methods.js b/lib/internal/process/methods.js index 9a954f6a9b..6f332df83c 100644 --- a/lib/internal/process/methods.js +++ b/lib/internal/process/methods.js @@ -12,8 +12,7 @@ const { isMainThread } = require('internal/worker'); -function setupProcessMethods(_chdir, _cpuUsage, _hrtime, _memoryUsage, - _rawDebug, _umask, _initgroups, _setegid, +function setupProcessMethods(_chdir, _umask, _initgroups, _setegid, _seteuid, _setgid, _setuid, _setgroups) { // Non-POSIX platforms like Windows don't have certain methods. // Workers also lack these methods since they change process-global state. |