File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- var SlowBuffer = process . binding ( 'buffer' ) . Buffer ;
1+ var SlowBuffer = process . binding ( 'buffer' ) . SlowBuffer ;
22
33
44function toHex ( n ) {
Original file line number Diff line number Diff line change @@ -579,7 +579,7 @@ void Buffer::Initialize(Handle<Object> target) {
579579 Local<FunctionTemplate> t = FunctionTemplate::New (Buffer::New);
580580 constructor_template = Persistent<FunctionTemplate>::New (t);
581581 constructor_template->InstanceTemplate ()->SetInternalFieldCount (1 );
582- constructor_template->SetClassName (String::NewSymbol (" Buffer " ));
582+ constructor_template->SetClassName (String::NewSymbol (" SlowBuffer " ));
583583
584584 // copy free
585585 NODE_SET_PROTOTYPE_METHOD (constructor_template, " binarySlice" , Buffer::BinarySlice);
@@ -602,7 +602,7 @@ void Buffer::Initialize(Handle<Object> target) {
602602 " makeFastBuffer" ,
603603 Buffer::MakeFastBuffer);
604604
605- target->Set (String::NewSymbol (" Buffer " ), constructor_template->GetFunction ());
605+ target->Set (String::NewSymbol (" SlowBuffer " ), constructor_template->GetFunction ());
606606}
607607
608608
You can’t perform that action at this time.
0 commit comments