summaryrefslogtreecommitdiff
path: root/src/tty_wrap.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-01-07 00:09:31 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-01-07 17:39:57 +0100
commit109f73b2c08a042bc2d788ba9df9469846dbc533 (patch)
tree3b77a127d9f6bdb566b6fd3f582e5cbcd79da8ee /src/tty_wrap.cc
parent01c3d0aa888e3a2bf709da760588df191479b922 (diff)
downloadandroid-node-v8-109f73b2c08a042bc2d788ba9df9469846dbc533.tar.gz
android-node-v8-109f73b2c08a042bc2d788ba9df9469846dbc533.tar.bz2
android-node-v8-109f73b2c08a042bc2d788ba9df9469846dbc533.zip
src: pass node_isolate to True() and False()
Diffstat (limited to 'src/tty_wrap.cc')
-rw-r--r--src/tty_wrap.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc
index 7875c7dfe0..476d0ab157 100644
--- a/src/tty_wrap.cc
+++ b/src/tty_wrap.cc
@@ -118,7 +118,12 @@ Handle<Value> TTYWrap::IsTTY(const Arguments& args) {
HandleScope scope;
int fd = args[0]->Int32Value();
assert(fd >= 0);
- return uv_guess_handle(fd) == UV_TTY ? v8::True() : v8::False();
+
+ if (uv_guess_handle(fd) == UV_TTY) {
+ return v8::True(node_isolate);
+ }
+
+ return v8::False(node_isolate);
}