http: root JS objects in HandleScope with Local<>

pull/24503/head
Ben Noordhuis 2012-03-26 06:57:28 -07:00
parent 9eacf93928
commit 1a49df5fa9
1 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ struct StringPtr {
} }
Handle<String> ToString() const { Local<String> ToString() const {
if (str_) if (str_)
return String::New(str_, size_); return String::New(str_, size_);
else else
@ -302,7 +302,7 @@ public:
if (!cb->IsFunction()) if (!cb->IsFunction())
return 0; return 0;
Handle<Value> argv[3] = { Local<Value> argv[3] = {
*current_buffer, *current_buffer,
Integer::New(at - current_buffer_data), Integer::New(at - current_buffer_data),
Integer::New(length) Integer::New(length)
@ -514,7 +514,7 @@ private:
if (!cb->IsFunction()) if (!cb->IsFunction())
return; return;
Handle<Value> argv[2] = { Local<Value> argv[2] = {
CreateHeaders(), CreateHeaders(),
url_.ToString() url_.ToString()
}; };