mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Move stdio to extension model.
This commit is contained in:
@@ -1586,12 +1586,6 @@ static Handle<Value> Binding(const Arguments& args) {
|
||||
exports = Object::New();
|
||||
modp->register_func(exports);
|
||||
binding_cache->Set(module, exports);
|
||||
}
|
||||
else if (!strcmp(*module_v, "stdio")) {
|
||||
exports = Object::New();
|
||||
Stdio::Initialize(exports);
|
||||
binding_cache->Set(module, exports);
|
||||
|
||||
} else if (!strcmp(*module_v, "cares")) {
|
||||
exports = Object::New();
|
||||
Cares::Initialize(exports);
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
|
||||
NODE_EXT_LIST_START
|
||||
NODE_EXT_LIST_ITEM(node_net)
|
||||
#ifdef HAVE_OPENSSL
|
||||
NODE_EXT_LIST_ITEM(node_crypto)
|
||||
#endif
|
||||
NODE_EXT_LIST_ITEM(node_net)
|
||||
NODE_EXT_LIST_ITEM(node_stdio)
|
||||
NODE_EXT_LIST_END
|
||||
|
||||
|
||||
@@ -216,3 +216,5 @@ void Stdio::Initialize(v8::Handle<v8::Object> target) {
|
||||
|
||||
|
||||
} // namespace node
|
||||
|
||||
NODE_MODULE(node_stdio, node::Stdio::Initialize);
|
||||
|
||||
Reference in New Issue
Block a user