Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit fe6be32

Browse files
committed
Don't set wrapper class in node, otherwise heap snapshot would crash.
1 parent 197de6c commit fe6be32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/async-wrap.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,13 @@ static void Initialize(Local<Object> target,
164164

165165
void LoadAsyncWrapperInfo(Environment* env) {
166166
HeapProfiler* heap_profiler = env->isolate()->GetHeapProfiler();
167+
#if 0
167168
#define V(PROVIDER) \
168169
heap_profiler->SetWrapperClassInfoProvider( \
169170
(NODE_ASYNC_ID_OFFSET + AsyncWrap::PROVIDER_ ## PROVIDER), WrapperInfo);
170171
NODE_ASYNC_PROVIDER_TYPES(V)
171172
#undef V
173+
#endif
172174
}
173175

174176

0 commit comments

Comments
 (0)