diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index 911fec398d6..04b86097efb 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -373,8 +373,8 @@ class Parser : public BaseObject { // var bytesParsed = parser->execute(buffer); static void Execute(const FunctionCallbackInfo& args) { + HandleScope handle_scope(args.GetIsolate()); Environment* env = Environment::GetCurrent(args.GetIsolate()); - HandleScope scope(env->isolate()); Parser* parser = Unwrap(args.Holder()); assert(parser->current_buffer_.IsEmpty());