From 1a49df5fa94364ea133ef719b33263f90d113757 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 26 Mar 2012 06:57:28 -0700 Subject: [PATCH] http: root JS objects in HandleScope with Local<> --- src/node_http_parser.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index 82cb9aa8ae9..af372902726 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -166,7 +166,7 @@ struct StringPtr { } - Handle ToString() const { + Local ToString() const { if (str_) return String::New(str_, size_); else @@ -302,7 +302,7 @@ public: if (!cb->IsFunction()) return 0; - Handle argv[3] = { + Local argv[3] = { *current_buffer, Integer::New(at - current_buffer_data), Integer::New(length) @@ -514,7 +514,7 @@ private: if (!cb->IsFunction()) return; - Handle argv[2] = { + Local argv[2] = { CreateHeaders(), url_.ToString() };