From 17e3bb7e0e9f34285de6ee07e3c5b0b913abd669 Mon Sep 17 00:00:00 2001 From: Bradley Farias Date: Wed, 5 Jul 2017 17:22:43 -0500 Subject: [PATCH] url: do not use HandleScope in ToObject It is not needed / invalidates the returned value unlike EscapableHandleScope --- src/node_url.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/node_url.cc b/src/node_url.cc index 2865f445e44606..c50700b2946831 100644 --- a/src/node_url.cc +++ b/src/node_url.cc @@ -2085,7 +2085,6 @@ static void DomainToUnicode(const FunctionCallbackInfo& args) { const Local URL::ToObject(Environment* env) const { Isolate* isolate = env->isolate(); Local context = env->context(); - HandleScope handle_scope(isolate); Context::Scope context_scope(context); const Local undef = Undefined(isolate);