diff --git a/src/async-wrap.cc b/src/async-wrap.cc index 4b4a9b9f6cbba0..86759bc62c63b4 100644 --- a/src/async-wrap.cc +++ b/src/async-wrap.cc @@ -645,6 +645,8 @@ void AsyncWrap::EmitAsyncInit(Environment* env, Local type, double async_id, double trigger_id) { + CHECK(!object.IsEmpty()); + CHECK(!type.IsEmpty()); AsyncHooks* async_hooks = env->async_hooks(); // Nothing to execute, so can continue normally.