summaryrefslogtreecommitdiff
path: root/src/string_bytes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_bytes.cc')
-rw-r--r--src/string_bytes.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/string_bytes.cc b/src/string_bytes.cc
index 7fc03c0f51..90fafd40cd 100644
--- a/src/string_bytes.cc
+++ b/src/string_bytes.cc
@@ -15,7 +15,6 @@
namespace node {
using v8::EscapableHandleScope;
-using v8::Handle;
using v8::HandleScope;
using v8::Isolate;
using v8::Local;
@@ -270,7 +269,7 @@ size_t hex_decode(char* buf,
bool StringBytes::GetExternalParts(Isolate* isolate,
- Handle<Value> val,
+ Local<Value> val,
const char** data,
size_t* len) {
if (Buffer::HasInstance(val)) {
@@ -346,7 +345,7 @@ size_t StringBytes::WriteUCS2(char* buf,
size_t StringBytes::Write(Isolate* isolate,
char* buf,
size_t buflen,
- Handle<Value> val,
+ Local<Value> val,
enum encoding encoding,
int* chars_written) {
HandleScope scope(isolate);
@@ -455,7 +454,7 @@ size_t StringBytes::Write(Isolate* isolate,
bool StringBytes::IsValidString(Isolate* isolate,
- Handle<String> string,
+ Local<String> string,
enum encoding enc) {
if (enc == HEX && string->Length() % 2 != 0)
return false;
@@ -468,7 +467,7 @@ bool StringBytes::IsValidString(Isolate* isolate,
// Will always be at least big enough, but may have some extra
// UTF8 can be as much as 3x the size, Base64 can have 1-2 extra bytes
size_t StringBytes::StorageSize(Isolate* isolate,
- Handle<Value> val,
+ Local<Value> val,
enum encoding encoding) {
HandleScope scope(isolate);
size_t data_size = 0;
@@ -517,7 +516,7 @@ size_t StringBytes::StorageSize(Isolate* isolate,
size_t StringBytes::Size(Isolate* isolate,
- Handle<Value> val,
+ Local<Value> val,
enum encoding encoding) {
HandleScope scope(isolate);
size_t data_size = 0;