diff --git a/src/async_wrap.cc b/src/async_wrap.cc index c9dfc40c0ca52d..5e9dc69f87839f 100644 --- a/src/async_wrap.cc +++ b/src/async_wrap.cc @@ -128,7 +128,7 @@ RetainedObjectInfo* WrapperInfo(uint16_t class_id, Local wrapper) { CHECK_GT(object->InternalFieldCount(), 0); AsyncWrap* wrap = Unwrap(object); - CHECK_NE(nullptr, wrap); + if (wrap == nullptr) return nullptr; // ClearWrap() already called. return new RetainedAsyncInfo(class_id, wrap); }