Skip to content

Commit 2500801

Browse files
Flarnaaddaleax
andauthored
Add DCHECK to ensure context_frame is not emtpy in MakeCallback
Co-authored-by: Anna Henningsen <github@addaleax.net>
1 parent bdd2d38 commit 2500801

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/async_wrap.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ MaybeLocal<Value> AsyncWrap::MakeCallback(const Local<Function> cb,
662662
Local<Value>* argv) {
663663
EmitTraceEventBefore();
664664

665+
DCHECK(!context_frame_.IsEmpty());
665666
ProviderType provider = provider_type();
666667
async_context context { get_async_id(), get_trigger_async_id() };
667668
MaybeLocal<Value> ret =

0 commit comments

Comments
 (0)