diff --git a/src/node.cc b/src/node.cc index 1767d255b2..0e798b1353 100644 --- a/src/node.cc +++ b/src/node.cc @@ -120,7 +120,7 @@ using v8::TryCatch; using v8::Uint32; using v8::V8; using v8::Value; -using v8::kExternalUnsignedIntArray; +using v8::kExternalUint32Array; // FIXME(bnoordhuis) Make these per-context? QUEUE handle_wrap_queue = { &handle_wrap_queue, &handle_wrap_queue }; @@ -928,7 +928,7 @@ void SetupAsyncListener(const FunctionCallbackInfo& args) { Environment::AsyncListener* async_listener = env->async_listener(); async_listener_flag_obj->SetIndexedPropertiesToExternalArrayData( async_listener->fields(), - kExternalUnsignedIntArray, + kExternalUint32Array, async_listener->fields_count()); // Do a little housekeeping. @@ -968,7 +968,7 @@ void SetupDomainUse(const FunctionCallbackInfo& args) { Environment::DomainFlag* domain_flag = env->domain_flag(); domain_flag_obj->SetIndexedPropertiesToExternalArrayData( domain_flag->fields(), - kExternalUnsignedIntArray, + kExternalUint32Array, domain_flag->fields_count()); // Do a little housekeeping. @@ -993,7 +993,7 @@ void SetupNextTick(const FunctionCallbackInfo& args) { Local tick_info_obj = args[0].As(); tick_info_obj->SetIndexedPropertiesToExternalArrayData( env->tick_info()->fields(), - kExternalUnsignedIntArray, + kExternalUint32Array, env->tick_info()->fields_count()); env->set_tick_callback_function(args[1].As()); diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 3f8de59b4f..822c4f868d 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -87,7 +87,7 @@ bool HasInstance(Handle obj) { if (!obj->HasIndexedPropertiesInExternalArrayData()) return false; v8::ExternalArrayType type = obj->GetIndexedPropertiesExternalArrayDataType(); - return type == v8::kExternalUnsignedByteArray; + return type == v8::kExternalUint8Array; } diff --git a/src/smalloc.cc b/src/smalloc.cc index d271479e41..41298030ce 100644 --- a/src/smalloc.cc +++ b/src/smalloc.cc @@ -51,7 +51,7 @@ using v8::RetainedObjectInfo; using v8::Uint32; using v8::Value; using v8::WeakCallbackData; -using v8::kExternalUnsignedByteArray; +using v8::kExternalUint8Array; class CallbackInfo { @@ -304,7 +304,7 @@ void Alloc(const FunctionCallbackInfo& args) { // it's faster to not pass the default argument then use Uint32Value if (args[2]->IsUndefined()) { - array_type = kExternalUnsignedByteArray; + array_type = kExternalUint8Array; } else { array_type = static_cast(args[2]->Uint32Value()); size_t type_length = ExternalArraySize(array_type); @@ -385,7 +385,7 @@ void AllocDispose(Environment* env, Handle obj) { if (data != NULL) { obj->SetIndexedPropertiesToExternalArrayData(NULL, - kExternalUnsignedByteArray, + kExternalUint8Array, 0); free(data); }