Browse Source

Move Buffer to extension model.

v0.7.4-release
Paul Querna 15 years ago
committed by Ryan Dahl
parent
commit
82daa46e26
  1. 4
      src/node.cc
  2. 2
      src/node_buffer.cc
  3. 1
      src/node_extensions.h

4
src/node.cc

@ -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);

2
src/node_buffer.cc

@ -549,3 +549,5 @@ void Buffer::Initialize(Handle<Object> target) {
} // namespace node
NODE_MODULE(node_buffer, node::Buffer::Initialize);

1
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

Loading…
Cancel
Save