File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,16 +143,12 @@ Local<ArrayBuffer> CallbackInfo::CreateTrackedArrayBuffer(
143143 return ab;
144144}
145145
146-
147146CallbackInfo::CallbackInfo (Environment* env,
148- FreeCallback callback,
149- char * data,
150- void * hint)
151- : callback_(callback),
152- data_ (data),
153- hint_(hint),
154- env_(env) {
155- env->cleanable_queue ()->PushFront (static_cast <node::Cleanable*>(this ));
147+ FreeCallback callback,
148+ char * data,
149+ void * hint)
150+ : callback_(callback), data_(data), hint_(hint), env_(env) {
151+ env->cleanable_queue ()->PushFront (static_cast <node::Cleanable*>(this ));
156152 env->external_memory_accounter ()->Increase (env->isolate (), sizeof (*this ));
157153}
158154
@@ -186,7 +182,7 @@ void CallbackInfo::CallAndResetCallback() {
186182
187183void CallbackInfo::OnBackingStoreFree () {
188184 // This method should always release the memory for `this`.
189- std::unique_ptr<CallbackInfo> self { this };
185+ std::unique_ptr<CallbackInfo> self{ this };
190186 // If callback_ == nullptr, that means that the callback has already run from
191187 // the cleanup hook, and there is nothing left to do here besides to clean
192188 // up the memory involved. In particular, the underlying `Environment` may
You can’t perform that action at this time.
0 commit comments