Skip to content

Commit

Permalink
Update raw.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Feb 20, 2024
1 parent 0700d1b commit ebfdb8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/raw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,10 @@ NAN_METHOD(SocketWrap::Recv) {
if(!newBuffer.ToLocal(&argv[0])) {
break;
}
buffer = argv[0]->ToObject(context).ToLocalChecked();
MaybeLocal<Object> maybeBuffer = Nan::To<Object>(argv[0]);
if(!maybeBuffer.ToLocal(&buffer)) {
break;
}
} while(true);

info.GetReturnValue().Set(info.This());
Expand Down

0 comments on commit ebfdb8f

Please sign in to comment.