summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-03-15 13:47:50 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-03-15 14:25:06 -0700
commit6befc72f829bfc7c027da8e96b12cf9d2a8f6a8e (patch)
tree8180440833c4ae56c822da4a71424d97a296ae24
parentc90546f138e42ee191a9ef240a0168007b243604 (diff)
downloadnode-6befc72f829bfc7c027da8e96b12cf9d2a8f6a8e.tar.gz
Add missing lib/events.js
-rw-r--r--lib/events.js4
-rw-r--r--src/node.cc1
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/events.js b/lib/events.js
new file mode 100644
index 000000000..d2d0bd9fe
--- /dev/null
+++ b/lib/events.js
@@ -0,0 +1,4 @@
+exports.EventEmitter = process.EventEmitter;
+
+exports.Promise = removed('Promise has been removed. See http://groups.google.com/group/nodejs/msg/0c483b891c56fea2 for more information.');
+process.Promise = exports.Promise;
diff --git a/src/node.cc b/src/node.cc
index 2d47b7880..cedcc64d7 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -1126,6 +1126,7 @@ static Handle<Value> Binding(const Arguments& args) {
// TODO DRY/automate this?
exports->Set(String::New("assert"), String::New(native_assert));
exports->Set(String::New("dns"), String::New(native_dns));
+ exports->Set(String::New("events"), String::New(native_events));
exports->Set(String::New("file"), String::New(native_file));
exports->Set(String::New("fs"), String::New(native_fs));
exports->Set(String::New("http"), String::New(native_http));