process.kill coerces args to integers

pull/5370/head
Ryan Dahl 2010-12-21 15:40:10 -08:00
parent 23cf938e4f
commit 4227e9d79d
1 changed files with 1 additions and 1 deletions

View 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.")));
}