mirror of https://github.com/nodejs/node.git
http: root JS objects in HandleScope with Local<>
parent
9eacf93928
commit
1a49df5fa9
|
@ -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()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue