Skip to content

Commit c458399

Browse files
committed
use undefined to avoid empty global
1 parent 2500801 commit c458399

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/async_wrap.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ void AsyncWrap::EmitDestroy(bool from_gc) {
338338
HandleScope handle_scope(env()->isolate());
339339
USE(object()->Set(env()->context(), env()->resource_symbol(), object()));
340340
}
341-
context_frame_.Reset();
341+
Isolate* isolate = env()->isolate();
342+
context_frame_.Reset(isolate, Undefined(isolate));
342343
}
343344
}
344345

0 commit comments

Comments
 (0)