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>
This commit is contained in:
Michaël Zasso authored and Rod Vagg committed 2015-09-06 21:39:05 +10:00
1 parent b1a2d9509f
commit 7ce749d722
72 files changed
+347 -383

No files matched your search

+5 -6
View File
@@ -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;