mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Merge branch 'v1.x'
PR-URL: https://github.com/iojs/io.js/pull/1582 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com> Conflicts: src/node_version.h
This commit is contained in:
commit
79a7a86d4d
16 files changed
+932
-315
No files matched your search
+3
-3
@@ -303,11 +303,11 @@ void Base64Slice(const FunctionCallbackInfo<Value>& args) {
|
||||
void Copy(const FunctionCallbackInfo<Value> &args) {
|
||||
Environment* env = Environment::GetCurrent(args);
|
||||
|
||||
Local<Object> target = args[0]->ToObject(env->isolate());
|
||||
|
||||
if (!HasInstance(target))
|
||||
if (!HasInstance(args[0]))
|
||||
return env->ThrowTypeError("first arg should be a Buffer");
|
||||
|
||||
Local<Object> target = args[0]->ToObject(env->isolate());
|
||||
|
||||
ARGS_THIS(args.This())
|
||||
size_t target_length = target->GetIndexedPropertiesExternalArrayDataLength();
|
||||
char* target_data = static_cast<char*>(
|
||||
|
||||
Reference in new issue
Block a user