Skip to content

Commit b8bfbda

Browse files
committed
Rename SlowBuffer in binding
1 parent 5bc4efe commit b8bfbda

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/buffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var SlowBuffer = process.binding('buffer').Buffer;
1+
var SlowBuffer = process.binding('buffer').SlowBuffer;
22

33

44
function toHex (n) {

src/node_buffer.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)