// copyOnto(source, source_start, dest, dest_start, copy_length)
void CopyOnto(const FunctionCallbackInfo<Value>& args) {
- HandleScope scope(node_isolate);
+ HandleScope handle_scope(node_isolate);
if (!args[0]->IsObject())
return ThrowTypeError("source must be an object");
// for internal use:
// dest._data = sliceOnto(source, dest, start, end);
void SliceOnto(const FunctionCallbackInfo<Value>& args) {
- HandleScope scope(node_isolate);
+ HandleScope handle_scope(node_isolate);
Local<Object> source = args[0].As<Object>();
Local<Object> dest = args[1].As<Object>();
// for internal use:
// alloc(obj, n[, type]);
void Alloc(const FunctionCallbackInfo<Value>& args) {
- HandleScope scope(node_isolate);
+ HandleScope handle_scope(node_isolate);
Local<Object> obj = args[0].As<Object>();
char* data = static_cast<char*>(malloc(length));
if (data == NULL) {
FatalError("node::smalloc::Alloc(v8::Handle<v8::Object>, size_t,"
- " ExternalArrayType)", "Out Of Memory");
+ " v8::ExternalArrayType)", "Out Of Memory");
}
Alloc(obj, data, length, type);
void AllocDispose(Handle<Object> obj) {
- HandleScope scope(node_isolate);
+ HandleScope handle_scope(node_isolate);
if (using_alloc_cb) {
Local<Value> ext_v = obj->GetHiddenValue(smalloc_sym);