process.kill coerces args to integers
authorRyan Dahl <ry@tinyclouds.org>
Tue, 21 Dec 2010 23:40:10 +0000 (15:40 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 21 Dec 2010 23:41:22 +0000 (15:41 -0800)
src/node.cc

index b4d4c90..8039d79 100644 (file)
@@ -1244,7 +1244,7 @@ v8::Handle<v8::Value> MemoryUsage(const v8::Arguments& args) {
 Handle<Value> Kill(const Arguments& args) {
   HandleScope scope;
 
-  if (args.Length() != 2 || !args[0]->IsNumber() || !args[1]->IsNumber()) {
+  if (args.Length() != 2) {
     return ThrowException(Exception::Error(String::New("Bad argument.")));
   }