summaryrefslogtreecommitdiff
path: root/src/string_bytes.cc
diff options
context:
space:
mode:
authorMichaƫl Zasso <mic.besace@gmail.com>2015-07-18 11:34:16 +0200
committerRod Vagg <rod@vagg.org>2015-09-06 21:38:05 +1000
commit4abc896a826c892c0d124989cc4ea6f490328942 (patch)
treeb201398a2fd9ea783ef5a8c9bf0ca9299f2451c4 /src/string_bytes.cc
parent9a03ae63566f761539bd3a18f0b08c34c4ba0e13 (diff)
downloadandroid-node-v8-4abc896a826c892c0d124989cc4ea6f490328942.tar.gz
android-node-v8-4abc896a826c892c0d124989cc4ea6f490328942.tar.bz2
android-node-v8-4abc896a826c892c0d124989cc4ea6f490328942.zip
src: replace usage of v8::Handle with v8::Local
v8::Handle is deprecated: https://codereview.chromium.org/1224623004 PR-URL: https://github.com/nodejs/io.js/pull/2202 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
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;