Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created March 13, 2013 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/5154078 to your computer and use it in GitHub Desktop.
Save isaacs/5154078 to your computer and use it in GitHub Desktop.
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc
index 544c1f8..fb6edbc 100644
--- a/src/stream_wrap.cc
+++ b/src/stream_wrap.cc
@@ -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));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment