Commit f8ed673 authored and committed Nov 13, 2018
1 parent 293983a commit f8ed673 Copy full SHA for f8ed673
File tree 3 files changed +1
-22
lines changed
3 files changed +1
-22
lines changed Original file line number Diff line number Diff line change 17
17
// avoid retaining a reference to the bootstrap
18
18
// object.
19
19
{ _setupTraceCategoryState,
20
- _setupProcessObject , _setupNextTick,
20
+ _setupNextTick,
21
21
_setupPromises, _chdir, _cpuUsage,
22
22
_hrtime, _hrtimeBigInt,
23
23
_memoryUsage, _rawDebug,
376
376
const origProcProto = Object . getPrototypeOf ( process ) ;
377
377
Object . setPrototypeOf ( origProcProto , EventEmitter . prototype ) ;
378
378
EventEmitter . call ( process ) ;
379
-
380
- _setupProcessObject ( pushValueToArray ) ;
381
-
382
- function pushValueToArray ( ) {
383
- for ( var i = 0 ; i < arguments . length ; i ++ )
384
- this . push ( arguments [ i ] ) ;
385
- }
386
379
}
387
380
388
381
function setupGlobalVariables ( ) {
Original file line number Diff line number Diff line change @@ -26,12 +26,6 @@ using v8::PromiseRejectMessage;
26
26
using v8::String;
27
27
using v8::Value;
28
28
29
- void SetupProcessObject (const FunctionCallbackInfo<Value>& args) {
30
- Environment* env = Environment::GetCurrent (args);
31
- CHECK (args[0 ]->IsFunction ());
32
- env->set_push_values_to_array_function (args[0 ].As <Function>());
33
- }
34
-
35
29
void RunMicrotasks (const FunctionCallbackInfo<Value>& args) {
36
30
args.GetIsolate ()->RunMicrotasks ();
37
31
}
@@ -142,7 +136,6 @@ void SetupPromises(const FunctionCallbackInfo<Value>& args) {
142
136
void SetupBootstrapObject(Environment* env,
143
137
Local<Object> bootstrapper) {
144
138
BOOTSTRAP_METHOD (_setupTraceCategoryState, SetupTraceCategoryState);
145
- BOOTSTRAP_METHOD (_setupProcessObject, SetupProcessObject);
146
139
BOOTSTRAP_METHOD (_setupNextTick, SetupNextTick);
147
140
BOOTSTRAP_METHOD (_setupPromises, SetupPromises);
148
141
BOOTSTRAP_METHOD (_chdir, Chdir);
Original file line number Diff line number Diff line change @@ -82,12 +82,6 @@ struct PackageConfig {
82
82
};
83
83
} // namespace loader
84
84
85
- // The number of items passed to push_values_to_array_function has diminishing
86
- // returns around 8. This should be used at all call sites using said function.
87
- #ifndef NODE_PUSH_VAL_TO_ARRAY_MAX
88
- #define NODE_PUSH_VAL_TO_ARRAY_MAX 8
89
- #endif
90
-
91
85
// PER_ISOLATE_* macros: We have a lot of per-isolate properties
92
86
// and adding and maintaining their getters and setters by hand would be
93
87
// difficult so let's make the preprocessor generate them for us.
@@ -350,7 +344,6 @@ struct PackageConfig {
350
344
V (process_object, v8::Object) \
351
345
V (promise_handler_function, v8::Function) \
352
346
V (promise_wrap_template, v8::ObjectTemplate) \
353
- V (push_values_to_array_function, v8::Function) \
354
347
V (sab_lifetimepartner_constructor_template, v8::FunctionTemplate) \
355
348
V (script_context_constructor_template, v8::FunctionTemplate) \
356
349
V (script_data_constructor_function, v8::Function) \
You can’t perform that action at this time.
0 commit comments