summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-06-16 16:11:51 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2015-06-17 17:49:52 +0200
commit5d0cee46bb90084e6dcd584deb5bc893862ce3b3 (patch)
treea35febca65339bdc10be531535c96dcdd635bfd3 /src
parent91dfb5e094f6e22f1ea9e1f5ebf8d462c5515eef (diff)
downloadnode-new-5d0cee46bb90084e6dcd584deb5bc893862ce3b3.tar.gz
vm: remove unnecessary HandleScopes
The accessors run inside an implicit HandleScope, there is no need to create a new one. PR-URL: https://github.com/nodejs/io.js/pull/2001 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_contextify.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/node_contextify.cc b/src/node_contextify.cc
index 81d0388a35..b52062e72a 100644
--- a/src/node_contextify.cc
+++ b/src/node_contextify.cc
@@ -362,7 +362,6 @@ class ContextifyContext {
Local<String> property,
const PropertyCallbackInfo<Value>& args) {
Isolate* isolate = args.GetIsolate();
- HandleScope scope(isolate);
ContextifyContext* ctx =
Unwrap<ContextifyContext>(args.Data().As<Object>());
@@ -387,7 +386,6 @@ class ContextifyContext {
Local<Value> value,
const PropertyCallbackInfo<Value>& args) {
Isolate* isolate = args.GetIsolate();
- HandleScope scope(isolate);
ContextifyContext* ctx =
Unwrap<ContextifyContext>(args.Data().As<Object>());
@@ -400,7 +398,6 @@ class ContextifyContext {
Local<String> property,
const PropertyCallbackInfo<Integer>& args) {
Isolate* isolate = args.GetIsolate();
- HandleScope scope(isolate);
ContextifyContext* ctx =
Unwrap<ContextifyContext>(args.Data().As<Object>());
@@ -422,7 +419,6 @@ class ContextifyContext {
Local<String> property,
const PropertyCallbackInfo<Boolean>& args) {
Isolate* isolate = args.GetIsolate();
- HandleScope scope(isolate);
ContextifyContext* ctx =
Unwrap<ContextifyContext>(args.Data().As<Object>());
@@ -435,8 +431,6 @@ class ContextifyContext {
static void GlobalPropertyEnumeratorCallback(
const PropertyCallbackInfo<Array>& args) {
- HandleScope scope(args.GetIsolate());
-
ContextifyContext* ctx =
Unwrap<ContextifyContext>(args.Data().As<Object>());