diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-03-26 06:57:28 -0700 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-03-30 21:24:01 +0200 |
commit | 1a49df5fa94364ea133ef719b33263f90d113757 (patch) | |
tree | ba50709be1688445dce0629850568e20044fe3cb /src | |
parent | 9eacf93928f3357806e972c3ea79e7694f0cd7eb (diff) | |
download | node-1a49df5fa94364ea133ef719b33263f90d113757.tar.gz |
http: root JS objects in HandleScope with Local<>
Diffstat (limited to 'src')
-rw-r--r-- | src/node_http_parser.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index 82cb9aa8a..af3729027 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -166,7 +166,7 @@ struct StringPtr { } - Handle<String> ToString() const { + Local<String> ToString() const { if (str_) return String::New(str_, size_); else @@ -302,7 +302,7 @@ public: if (!cb->IsFunction()) return 0; - Handle<Value> argv[3] = { + Local<Value> argv[3] = { *current_buffer, Integer::New(at - current_buffer_data), Integer::New(length) @@ -514,7 +514,7 @@ private: if (!cb->IsFunction()) return; - Handle<Value> argv[2] = { + Local<Value> argv[2] = { CreateHeaders(), url_.ToString() }; |