Add require('constants')

This commit is contained in:
Ryan Dahl 2010-09-16 23:22:58 -07:00
parent 6680c7fbf7
commit 31f8fa222e
2 changed files with 2 additions and 0 deletions

1
lib/constants.js Normal file
View File

@ -0,0 +1 @@
module.exports = process.binding("constants");

View File

@ -1484,6 +1484,7 @@ static Handle<Value> Binding(const Arguments& args) {
exports->Set(String::New("assert"), String::New(native_assert));
exports->Set(String::New("buffer"), String::New(native_buffer));
exports->Set(String::New("child_process"),String::New(native_child_process));
exports->Set(String::New("constants"), String::New(native_constants));
exports->Set(String::New("dgram"), String::New(native_dgram));
exports->Set(String::New("dns"), String::New(native_dns));
exports->Set(String::New("events"), String::New(native_events));