Browse Source

core: Unwrap without aborting in handle fd getter

v0.10.1-release
isaacs 12 years ago
parent
commit
53f2381455
  1. 2
      src/stream_wrap.cc

2
src/stream_wrap.cc

@ -122,7 +122,7 @@ Handle<Value> StreamWrap::GetFD(Local<String>, const AccessorInfo& args) {
return v8::Null(); return v8::Null();
#else #else
HandleScope scope; HandleScope scope;
UNWRAP(StreamWrap) UNWRAP_NO_ABORT(StreamWrap)
int fd = -1; int fd = -1;
if (wrap != NULL && wrap->stream_ != NULL) fd = wrap->stream_->io_watcher.fd; if (wrap != NULL && wrap->stream_ != NULL) fd = wrap->stream_->io_watcher.fd;
return scope.Close(Integer::New(fd)); return scope.Close(Integer::New(fd));

Loading…
Cancel
Save