Skip to content

Commit 31f8fa2

Browse files
committed
Add require('constants')
1 parent 6680c7f commit 31f8fa2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

lib/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = process.binding("constants");

src/node.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,7 @@ static Handle<Value> Binding(const Arguments& args) {
14841484
exports->Set(String::New("assert"), String::New(native_assert));
14851485
exports->Set(String::New("buffer"), String::New(native_buffer));
14861486
exports->Set(String::New("child_process"),String::New(native_child_process));
1487+
exports->Set(String::New("constants"), String::New(native_constants));
14871488
exports->Set(String::New("dgram"), String::New(native_dgram));
14881489
exports->Set(String::New("dns"), String::New(native_dns));
14891490
exports->Set(String::New("events"), String::New(native_events));

0 commit comments

Comments
 (0)