Skip to content

Commit 53750f5

Browse files
committed
fixup! src: add cleanup hooks to node::ObjectWrap
1 parent 5e12408 commit 53750f5

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/node_object_wrap.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222
#ifndef SRC_NODE_OBJECT_WRAP_H_
2323
#define SRC_NODE_OBJECT_WRAP_H_
2424

25-
#include "node.h"
2625
#include <cassert>
27-
26+
#include "node.h"
2827

2928
namespace node {
3029

@@ -135,9 +134,7 @@ class ObjectWrap {
135134
RemoveEnvironmentCleanupHook(v8::Isolate::GetCurrent(), CleanupHook, this);
136135
}
137136

138-
static void CleanupHook(void* arg) {
139-
delete static_cast<ObjectWrap*>(arg);
140-
}
137+
static void CleanupHook(void* arg) { delete static_cast<ObjectWrap*>(arg); }
141138

142139
// NOLINTNEXTLINE(runtime/v8_persistent)
143140
v8::Persistent<v8::Object> handle_;

0 commit comments

Comments
 (0)