Skip to content

Commit

Permalink
core: Unwrap without aborting in handle fd getter
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 13, 2013
1 parent 7a07b31 commit 53f2381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Handle<Value> StreamWrap::GetFD(Local<String>, const AccessorInfo& args) {
return v8::Null();
#else
HandleScope scope;
UNWRAP(StreamWrap)
UNWRAP_NO_ABORT(StreamWrap)
int fd = -1;
if (wrap != NULL && wrap->stream_ != NULL) fd = wrap->stream_->io_watcher.fd;
return scope.Close(Integer::New(fd));
Expand Down

0 comments on commit 53f2381

Please sign in to comment.