From 31f8fa222e2c65642b28a3267adbe758f5af65b5 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 16 Sep 2010 23:22:58 -0700 Subject: [PATCH] Add require('constants') --- lib/constants.js | 1 + src/node.cc | 1 + 2 files changed, 2 insertions(+) create mode 100644 lib/constants.js diff --git a/lib/constants.js b/lib/constants.js new file mode 100644 index 00000000000000..7a90046533ee21 --- /dev/null +++ b/lib/constants.js @@ -0,0 +1 @@ +module.exports = process.binding("constants"); diff --git a/src/node.cc b/src/node.cc index 31d9cb65034706..52fad0deced974 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1484,6 +1484,7 @@ static Handle 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));