summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-11-09 12:25:22 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-11-14 02:59:45 +0800
commit5877836a33c23dfa591f75005182fb4ab379bcdc (patch)
tree55a0f942d5e4efd963118ac84306293e3f95f15b /lib
parent51cea618e21ba88bc20feb537a72c1b831a94b46 (diff)
downloadandroid-node-v8-5877836a33c23dfa591f75005182fb4ab379bcdc.tar.gz
android-node-v8-5877836a33c23dfa591f75005182fb4ab379bcdc.tar.bz2
android-node-v8-5877836a33c23dfa591f75005182fb4ab379bcdc.zip
src: remove pushValueToArray and SetupProcessObject
The usage of NODE_PUSH_VAL_TO_ARRAY_MAX and push_values_to_array_function has all been removed in favor of the new Array::New API that takes a C++ array. Remove the unused code. PR-URL: https://github.com/nodejs/node/pull/24264 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/bootstrap/node.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js
index a0cf67b9ea..85bfc688b3 100644
--- a/lib/internal/bootstrap/node.js
+++ b/lib/internal/bootstrap/node.js
@@ -17,7 +17,7 @@
// avoid retaining a reference to the bootstrap
// object.
{ _setupTraceCategoryState,
- _setupProcessObject, _setupNextTick,
+ _setupNextTick,
_setupPromises, _chdir, _cpuUsage,
_hrtime, _hrtimeBigInt,
_memoryUsage, _rawDebug,
@@ -376,13 +376,6 @@
const origProcProto = Object.getPrototypeOf(process);
Object.setPrototypeOf(origProcProto, EventEmitter.prototype);
EventEmitter.call(process);
-
- _setupProcessObject(pushValueToArray);
-
- function pushValueToArray() {
- for (var i = 0; i < arguments.length; i++)
- this.push(arguments[i]);
- }
}
function setupGlobalVariables() {