diff options
Diffstat (limited to 'src/node_wrap.h')
-rw-r--r-- | src/node_wrap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_wrap.h b/src/node_wrap.h index 1b7b451627a..ff7179fdb89 100644 --- a/src/node_wrap.h +++ b/src/node_wrap.h @@ -39,15 +39,15 @@ extern v8::Persistent<v8::FunctionTemplate> tcpConstructorTmpl; #define WITH_GENERIC_STREAM(obj, BODY) \ do { \ if (!tcpConstructorTmpl.IsEmpty() && \ - tcpConstructorTmpl->HasInstance(obj)) { \ + HasInstance(tcpConstructorTmpl, obj)) { \ PipeWrap* wrap = PipeWrap::Unwrap(obj); \ BODY \ } else if (!ttyConstructorTmpl.IsEmpty() && \ - ttyConstructorTmpl->HasInstance(obj)) { \ + HasInstance(ttyConstructorTmpl, obj)) { \ TTYWrap* wrap = TTYWrap::Unwrap(obj); \ BODY \ } else if (!pipeConstructorTmpl.IsEmpty() && \ - pipeConstructorTmpl->HasInstance(obj)) { \ + HasInstance(pipeConstructorTmpl, obj)) { \ TCPWrap* wrap = TCPWrap::Unwrap(obj); \ BODY \ } \ |