Don't set wrapper class in node, otherwise heap snapshot would crash.
(cherry picked from commit 49951fc3cb40c6d167528003f1c936144a931e56)
This commit is contained in:
Родитель
5e8eef9e9e
Коммит
af49297579
|
@ -573,11 +573,13 @@ void AsyncWrap::Initialize(Local<Object> target,
|
|||
|
||||
void LoadAsyncWrapperInfo(Environment* env) {
|
||||
HeapProfiler* heap_profiler = env->isolate()->GetHeapProfiler();
|
||||
#if 0
|
||||
#define V(PROVIDER) \
|
||||
heap_profiler->SetWrapperClassInfoProvider( \
|
||||
(NODE_ASYNC_ID_OFFSET + AsyncWrap::PROVIDER_ ## PROVIDER), WrapperInfo);
|
||||
NODE_ASYNC_PROVIDER_TYPES(V)
|
||||
#undef V
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче