summaryrefslogtreecommitdiff
path: root/src/uv.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2014-10-11 16:24:12 +0200
committerFedor Indutny <fedor@indutny.com>2014-10-12 02:09:16 +0400
commit97585b0d7ab0084d90faf6bded275b902d76857a (patch)
tree26853d875786c014e2e9ef5ed2ec18f7ed601775 /src/uv.cc
parentb2e519983f1e92a874a74c11e82027955ef8909a (diff)
downloadandroid-node-v8-97585b0d7ab0084d90faf6bded275b902d76857a.tar.gz
android-node-v8-97585b0d7ab0084d90faf6bded275b902d76857a.tar.bz2
android-node-v8-97585b0d7ab0084d90faf6bded275b902d76857a.zip
src: remove unnecessary HandleScopes
API callback functions don't need to create a v8::HandleScope instance because V8 already creates one in the JS->C++ adapter frame. PR-URL: https://github.com/node-forward/node/pull/16 Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'src/uv.cc')
-rw-r--r--src/uv.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/uv.cc b/src/uv.cc
index 54bbf92f12..de99b6e66d 100644
--- a/src/uv.cc
+++ b/src/uv.cc
@@ -31,7 +31,6 @@ using v8::Context;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
using v8::Handle;
-using v8::HandleScope;
using v8::Integer;
using v8::Object;
using v8::String;
@@ -40,7 +39,6 @@ using v8::Value;
void ErrName(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args.GetIsolate());
- HandleScope scope(env->isolate());
int err = args[0]->Int32Value();
if (err >= 0)
return env->ThrowError("err >= 0");