summaryrefslogtreecommitdiff
path: root/src/tty_wrap.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-11-22 17:10:09 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2011-12-29 01:56:09 +0100
commit356992fe4ded4d48e487aa9f0826a9b9ce022bcb (patch)
treea27e8642aafa2166a1131c90e27c648d90ae3430 /src/tty_wrap.cc
parente9f8e2842636650bdfa8101e6204003707661820 (diff)
downloadandroid-node-v8-356992fe4ded4d48e487aa9f0826a9b9ce022bcb.tar.gz
android-node-v8-356992fe4ded4d48e487aa9f0826a9b9ce022bcb.tar.bz2
android-node-v8-356992fe4ded4d48e487aa9f0826a9b9ce022bcb.zip
isolates: isolate-ify the main loop
Diffstat (limited to 'src/tty_wrap.cc')
-rw-r--r--src/tty_wrap.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc
index 486c2a70b4..b3ed49fa84 100644
--- a/src/tty_wrap.cc
+++ b/src/tty_wrap.cc
@@ -124,7 +124,7 @@ class TTYWrap : StreamWrap {
int r = uv_tty_get_winsize(&wrap->handle_, &width, &height);
if (r) {
- SetErrno(uv_last_error(uv_default_loop()));
+ SetErrno(uv_last_error(NODE_LOOP()));
return v8::Undefined();
}
@@ -143,7 +143,7 @@ class TTYWrap : StreamWrap {
int r = uv_tty_set_mode(&wrap->handle_, args[0]->IsTrue());
if (r) {
- SetErrno(uv_last_error(uv_default_loop()));
+ SetErrno(uv_last_error(NODE_LOOP()));
}
return scope.Close(Integer::New(r));
@@ -169,7 +169,7 @@ class TTYWrap : StreamWrap {
TTYWrap(Handle<Object> object, int fd, bool readable)
: StreamWrap(object, (uv_stream_t*)&handle_) {
- uv_tty_init(uv_default_loop(), &handle_, fd, readable);
+ uv_tty_init(NODE_LOOP(), &handle_, fd, readable);
}
uv_tty_t handle_;