Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
core: ignore too many arguments, don't assert
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasMadsen authored and bnoordhuis committed Feb 20, 2012
1 parent f116e17 commit 3f40623
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/node.cc
Expand Up @@ -1332,15 +1332,13 @@ 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));
}


static Handle<Value> GetGid(const Arguments& args) {
HandleScope scope;
assert(args.Length() == 0);
int gid = getgid();
return scope.Close(Integer::New(gid));
}
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 3f40623

Please sign in to comment.