summaryrefslogtreecommitdiff
path: root/src/tty_wrap.cc
diff options
context:
space:
mode:
authorKeith M Wesolowski <wesolows@foobazco.org>2013-12-17 00:00:44 +0000
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-01-27 15:52:50 -0800
commit76b98462e589a69d9fd48ccb9fb5f6e96b539715 (patch)
tree7e14eb4c89cdb4a913ca6f9976cf6b62da8b59df /src/tty_wrap.cc
parentf4c8020d1068ffba57458b327c62b61b1f29ec63 (diff)
downloadandroid-node-v8-76b98462e589a69d9fd48ccb9fb5f6e96b539715.tar.gz
android-node-v8-76b98462e589a69d9fd48ccb9fb5f6e96b539715.tar.bz2
android-node-v8-76b98462e589a69d9fd48ccb9fb5f6e96b539715.zip
node: register modules from DSO constructors
Built-in modules should be automatically registered, replacing the static module list. Add-on modules should also be automatically registered via DSO constructors. This improves flexibility in adding built-in modules and is also a prerequisite to pure-C addon modules.
Diffstat (limited to 'src/tty_wrap.cc')
-rw-r--r--src/tty_wrap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc
index 0f7e390748..b1a354ac33 100644
--- a/src/tty_wrap.cc
+++ b/src/tty_wrap.cc
@@ -180,4 +180,4 @@ TTYWrap::TTYWrap(Environment* env, Handle<Object> object, int fd, bool readable)
} // namespace node
-NODE_MODULE_CONTEXT_AWARE(node_tty_wrap, node::TTYWrap::Initialize)
+NODE_MODULE_CONTEXT_AWARE_BUILTIN(tty_wrap, node::TTYWrap::Initialize)