diff --git a/src/async-wrap.cc b/src/async-wrap.cc index f336a49307557c..b6588a20ad4071 100644 --- a/src/async-wrap.cc +++ b/src/async-wrap.cc @@ -646,6 +646,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.