Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 53f2381

Browse files
committed
core: Unwrap without aborting in handle fd getter
1 parent 7a07b31 commit 53f2381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream_wrap.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Handle<Value> StreamWrap::GetFD(Local<String>, const AccessorInfo& args) {
122122
return v8::Null();
123123
#else
124124
HandleScope scope;
125-
UNWRAP(StreamWrap)
125+
UNWRAP_NO_ABORT(StreamWrap)
126126
int fd = -1;
127127
if (wrap != NULL && wrap->stream_ != NULL) fd = wrap->stream_->io_watcher.fd;
128128
return scope.Close(Integer::New(fd));

0 commit comments

Comments
 (0)