diff --git a/src/node_http2.cc b/src/node_http2.cc index 2f8f0243395df5..568b59b5b4d722 100644 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -89,7 +89,7 @@ ssize_t Http2Session::OnCallbackPadding(size_t frameLen, Context::Scope context_scope(context); #if defined(DEBUG) && DEBUG - CHECK(object->Has(context, env()->ongetpadding_string()).FromJust()); + CHECK(object()->Has(context, env()->ongetpadding_string()).FromJust()); #endif AliasedBuffer& buffer = diff --git a/src/node_http2_core-inl.h b/src/node_http2_core-inl.h index 5bfe1dc19a949c..9735e565b2f0e2 100644 --- a/src/node_http2_core-inl.h +++ b/src/node_http2_core-inl.h @@ -462,7 +462,7 @@ inline void Nghttp2Session::HandlePriorityFrame(const nghttp2_frame* frame) { // good here #if defined(DEBUG) && DEBUG - CHECK_GT(id, 0) + CHECK_GT(id, 0); #endif nghttp2_priority_spec spec = priority_frame.pri_spec;