core: ignore too many arguments, don't assert

This commit is contained in:
Andreas Madsen 2012-02-20 19:55:37 +01:00 committed by Ben Noordhuis
parent f116e17a23
commit 3f4062309e

View File

@ -1332,7 +1332,6 @@ static Handle<Value> Umask(const Arguments& args) {
static Handle<Value> GetUid(const Arguments& args) { static Handle<Value> GetUid(const Arguments& args) {
HandleScope scope; HandleScope scope;
assert(args.Length() == 0);
int uid = getuid(); int uid = getuid();
return scope.Close(Integer::New(uid)); return scope.Close(Integer::New(uid));
} }
@ -1340,7 +1339,6 @@ static Handle<Value> GetUid(const Arguments& args) {
static Handle<Value> GetGid(const Arguments& args) { static Handle<Value> GetGid(const Arguments& args) {
HandleScope scope; HandleScope scope;
assert(args.Length() == 0);
int gid = getgid(); int gid = getgid();
return scope.Close(Integer::New(gid)); 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) { static Handle<Value> Uptime(const Arguments& args) {
HandleScope scope; HandleScope scope;
assert(args.Length() == 0);
double uptime; double uptime;
uv_err_t err = uv_uptime(&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) { v8::Handle<v8::Value> MemoryUsage(const v8::Arguments& args) {
HandleScope scope; HandleScope scope;
assert(args.Length() == 0);
size_t rss; size_t rss;