Add missing lib/events.js

This commit is contained in:
Ryan Dahl 2010-03-15 13:47:50 -07:00
parent c90546f138
commit 6befc72f82
2 changed files with 5 additions and 0 deletions

4
lib/events.js Normal file
View File

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

View File

@ -1126,6 +1126,7 @@ static Handle<Value> Binding(const Arguments& args) {
// TODO DRY/automate this? // TODO DRY/automate this?
exports->Set(String::New("assert"), String::New(native_assert)); exports->Set(String::New("assert"), String::New(native_assert));
exports->Set(String::New("dns"), String::New(native_dns)); 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("file"), String::New(native_file));
exports->Set(String::New("fs"), String::New(native_fs)); exports->Set(String::New("fs"), String::New(native_fs));
exports->Set(String::New("http"), String::New(native_http)); exports->Set(String::New("http"), String::New(native_http));