mirror of https://github.com/nodejs/node.git
node: remove duplicate tickInfo assignment
When process._setupNextTick() was introduced as the means to properly initialize the mechanism behind process.nextTick() a chunk of code was left behind that assigned memory to process._tickInfo. This code is no longer needed.pull/5010/head
parent
9b7888ef88
commit
53b2e02a46
|
@ -207,7 +207,6 @@ namespace node {
|
|||
V(syscall_string, "syscall") \
|
||||
V(tick_callback_string, "_tickCallback") \
|
||||
V(tick_domain_cb_string, "_tickDomainCallback") \
|
||||
V(tick_info_string, "_tickInfo") \
|
||||
V(timeout_string, "timeout") \
|
||||
V(times_string, "times") \
|
||||
V(timestamp_string, "timestamp") \
|
||||
|
|
|
@ -2781,14 +2781,6 @@ void SetupProcessObject(Environment* env,
|
|||
NODE_SET_METHOD(process, "_setupNextTick", SetupNextTick);
|
||||
NODE_SET_METHOD(process, "_setupDomainUse", SetupDomainUse);
|
||||
|
||||
// values use to cross communicate with processNextTick
|
||||
Local<Object> tick_info_obj = Object::New(env->isolate());
|
||||
tick_info_obj->SetIndexedPropertiesToExternalArrayData(
|
||||
env->tick_info()->fields(),
|
||||
kExternalUnsignedIntArray,
|
||||
env->tick_info()->fields_count());
|
||||
process->Set(env->tick_info_string(), tick_info_obj);
|
||||
|
||||
// pre-set _events object for faster emit checks
|
||||
process->Set(env->events_string(), Object::New(env->isolate()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue