Skip to content
Browse files

Rename SlowBuffer in binding

  • Loading branch information...
1 parent 5bc4efe commit b8bfbdab48d5ea08dd0f42cdb1a02f8b07490247 @ry ry committed
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/buffer.js
  2. +2 −2 src/node_buffer.cc
View
2 lib/buffer.js
@@ -1,4 +1,4 @@
-var SlowBuffer = process.binding('buffer').Buffer;
+var SlowBuffer = process.binding('buffer').SlowBuffer;
function toHex (n) {
View
4 src/node_buffer.cc
@@ -579,7 +579,7 @@ void Buffer::Initialize(Handle<Object> target) {
Local<FunctionTemplate> t = FunctionTemplate::New(Buffer::New);
constructor_template = Persistent<FunctionTemplate>::New(t);
constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
- constructor_template->SetClassName(String::NewSymbol("Buffer"));
+ constructor_template->SetClassName(String::NewSymbol("SlowBuffer"));
// copy free
NODE_SET_PROTOTYPE_METHOD(constructor_template, "binarySlice", Buffer::BinarySlice);
@@ -602,7 +602,7 @@ void Buffer::Initialize(Handle<Object> target) {
"makeFastBuffer",
Buffer::MakeFastBuffer);
- target->Set(String::NewSymbol("Buffer"), constructor_template->GetFunction());
+ target->Set(String::NewSymbol("SlowBuffer"), constructor_template->GetFunction());
}

0 comments on commit b8bfbda

Please sign in to comment.
Something went wrong with that request. Please try again.