From: Andreas Madsen Date: Mon, 20 Feb 2012 18:55:37 +0000 (+0100) Subject: core: ignore too many arguments, don't assert X-Git-Tag: v0.7.5~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f4062309e6bead91111db9811b5e6e2c20ca2a9;p=platform%2Fupstream%2Fnodejs.git core: ignore too many arguments, don't assert --- diff --git a/src/node.cc b/src/node.cc index 42a2f8c..ead527d 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1332,7 +1332,6 @@ static Handle Umask(const Arguments& args) { static Handle 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 GetUid(const Arguments& args) { static Handle 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 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 UVCounters(const v8::Arguments& args) { v8::Handle MemoryUsage(const v8::Arguments& args) { HandleScope scope; - assert(args.Length() == 0); size_t rss;