summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Madsen <amwebdk@gmail.com>2012-02-20 19:55:37 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2012-02-20 21:55:35 +0100
commit3f4062309e6bead91111db9811b5e6e2c20ca2a9 (patch)
tree3076933deb30fec7e7a9884e1836707425e73606 /src
parentf116e17a2300545451e3e7b60bd4e20fc4489d20 (diff)
downloadnode-3f4062309e6bead91111db9811b5e6e2c20ca2a9.tar.gz
core: ignore too many arguments, don't assert
Diffstat (limited to 'src')
-rw-r--r--src/node.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/node.cc b/src/node.cc
index 42a2f8c0d..ead527d27 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -1332,7 +1332,6 @@ static Handle<Value> Umask(const Arguments& args) {
static Handle<Value> GetUid(const Arguments& args) {
HandleScope scope;
- assert(args.Length() == 0);
int uid = getuid();
return scope.Close(Integer::New(uid));
}
@@ -1340,7 +1339,6 @@ static Handle<Value> GetUid(const Arguments& args) {
static Handle<Value> GetGid(const Arguments& args) {
HandleScope scope;
- assert(args.Length() == 0);
int gid = getgid();
return scope.Close(Integer::New(gid));
}
@@ -1463,7 +1461,6 @@ static void CheckStatus(uv_timer_t* watcher, int status) {
static Handle<Value> Uptime(const Arguments& args) {
HandleScope scope;
- assert(args.Length() == 0);
double uptime;
uv_err_t err = uv_uptime(&uptime);
@@ -1510,7 +1507,6 @@ v8::Handle<v8::Value> UVCounters(const v8::Arguments& args) {
v8::Handle<v8::Value> MemoryUsage(const v8::Arguments& args) {
HandleScope scope;
- assert(args.Length() == 0);
size_t rss;