GeezerVison is showing github.com — http2: use args.This() instead of args.Holder() · nodejs/node@924ebcd
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/node_http2.cc +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -768,7 +768,7 @@ void Http2Stream::EmitStatistics() { |
768 | 768 |
|
769 | 769 | void Http2Session::HasPendingData(const FunctionCallbackInfo<Value>& args) { |
770 | 770 | Http2Session* session; |
771 | | - ASSIGN_OR_RETURN_UNWRAP(&session, args.Holder()); |
| 771 | + ASSIGN_OR_RETURN_UNWRAP(&session, args.This()); |
772 | 772 | args.GetReturnValue().Set(session->HasPendingData()); |
773 | 773 | } |
774 | 774 |
|
@@ -3578,7 +3578,7 @@ void Initialize(Local<Object> target, |
3578 | 3578 |
|
3579 | 3579 | void Http2Session::SetGracefulClose(const FunctionCallbackInfo<Value>& args) { |
3580 | 3580 | Http2Session* session; |
3581 | | - ASSIGN_OR_RETURN_UNWRAP(&session, args.Holder()); |
| 3581 | + ASSIGN_OR_RETURN_UNWRAP(&session, args.This()); |
3582 | 3582 | CHECK_NOT_NULL(session); |
3583 | 3583 | // Set the graceful close flag |
3584 | 3584 | session->SetGracefulCloseInitiated(true); |
|