Skip to content

Commit

Permalink
Move Buffer to extension model.
Browse files Browse the repository at this point in the history
  • Loading branch information
pquerna authored and ry committed Jul 14, 2010
1 parent 4f7f437 commit 82daa46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/node.cc
Expand Up @@ -1597,10 +1597,6 @@ static Handle<Value> Binding(const Arguments& args) {
StatWatcher::Initialize(exports);
File::Initialize(exports);
binding_cache->Set(module, exports);
} else if (!strcmp(*module_v, "buffer")) {
exports = Object::New();
Buffer::Initialize(exports);
binding_cache->Set(module, exports);
} else if (!strcmp(*module_v, "evals")) {
exports = Object::New();
node::Context::Initialize(exports);
Expand Down
2 changes: 2 additions & 0 deletions src/node_buffer.cc
Expand Up @@ -549,3 +549,5 @@ void Buffer::Initialize(Handle<Object> target) {


} // namespace node

NODE_MODULE(node_buffer, node::Buffer::Initialize);
1 change: 1 addition & 0 deletions src/node_extensions.h
@@ -1,5 +1,6 @@

NODE_EXT_LIST_START
NODE_EXT_LIST_ITEM(node_buffer)
NODE_EXT_LIST_ITEM(node_cares)
NODE_EXT_LIST_ITEM(node_child_process)
#ifdef HAVE_OPENSSL
Expand Down

0 comments on commit 82daa46

Please sign in to comment.