Skip to content

Commit 6befc72

Browse files
committed
Add missing lib/events.js
1 parent c90546f commit 6befc72

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/events.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
exports.EventEmitter = process.EventEmitter;
2+
3+
exports.Promise = removed('Promise has been removed. See http://groups.google.com/group/nodejs/msg/0c483b891c56fea2 for more information.');
4+
process.Promise = exports.Promise;

src/node.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,7 @@ static Handle<Value> Binding(const Arguments& args) {
11261126
// TODO DRY/automate this?
11271127
exports->Set(String::New("assert"), String::New(native_assert));
11281128
exports->Set(String::New("dns"), String::New(native_dns));
1129+
exports->Set(String::New("events"), String::New(native_events));
11291130
exports->Set(String::New("file"), String::New(native_file));
11301131
exports->Set(String::New("fs"), String::New(native_fs));
11311132
exports->Set(String::New("http"), String::New(native_http));

0 commit comments

Comments
 (0)