mirror of https://github.com/nodejs/node.git
Move Buffer to extension model.
parent
4f7f43762d
commit
82daa46e26
|
@ -1597,10 +1597,6 @@ static Handle<Value> Binding(const Arguments& args) {
|
||||||
StatWatcher::Initialize(exports);
|
StatWatcher::Initialize(exports);
|
||||||
File::Initialize(exports);
|
File::Initialize(exports);
|
||||||
binding_cache->Set(module, 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")) {
|
} else if (!strcmp(*module_v, "evals")) {
|
||||||
exports = Object::New();
|
exports = Object::New();
|
||||||
node::Context::Initialize(exports);
|
node::Context::Initialize(exports);
|
||||||
|
|
|
@ -549,3 +549,5 @@ void Buffer::Initialize(Handle<Object> target) {
|
||||||
|
|
||||||
|
|
||||||
} // namespace node
|
} // namespace node
|
||||||
|
|
||||||
|
NODE_MODULE(node_buffer, node::Buffer::Initialize);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
NODE_EXT_LIST_START
|
NODE_EXT_LIST_START
|
||||||
|
NODE_EXT_LIST_ITEM(node_buffer)
|
||||||
NODE_EXT_LIST_ITEM(node_cares)
|
NODE_EXT_LIST_ITEM(node_cares)
|
||||||
NODE_EXT_LIST_ITEM(node_child_process)
|
NODE_EXT_LIST_ITEM(node_child_process)
|
||||||
#ifdef HAVE_OPENSSL
|
#ifdef HAVE_OPENSSL
|
||||||
|
|
Loading…
Reference in New Issue