diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-01-20 18:55:38 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-01-20 18:57:50 +0400 |
commit | 4e5247772da5293a109dfff78a9eff89eb5eabdf (patch) | |
tree | 6cfca5a9d6f794c70cb7e3a02a208bde3a71af6e /src | |
parent | 2156e5eca10d1dc3bb8155dc70f1dc0718841028 (diff) |
fs, handle_wrap: use Loop(), not uv_default_loop()
Using the default loop will fail in unexpected and interesting ways when
isolates are used.
Diffstat (limited to 'src')
-rw-r--r-- | src/handle_wrap.cc | 2 | ||||
-rw-r--r-- | src/node_file.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/handle_wrap.cc b/src/handle_wrap.cc index 0eb8281ff9f..86c2a9e6700 100644 --- a/src/handle_wrap.cc +++ b/src/handle_wrap.cc @@ -89,7 +89,7 @@ Handle<Value> HandleWrap::Ref(const Arguments& args) { } wrap->unref = false; - uv_ref(uv_default_loop()); + uv_ref(Loop()); return v8::Undefined(); } diff --git a/src/node_file.cc b/src/node_file.cc index 376ebd98c34..abba5765dd2 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -234,7 +234,7 @@ struct fs_req_wrap { uv_fs_t* req = &req_wrap->req_; \ req->result = r; \ req->path = NULL; \ - req->errorno = uv_last_error(uv_default_loop()).code; \ + req->errorno = uv_last_error(Loop()).code; \ After(req); \ } \ return scope.Close(req_wrap->object_); |