From 4227e9d79decac90f1aeff633fc9c3c39843be9e Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 21 Dec 2010 15:40:10 -0800 Subject: [PATCH] process.kill coerces args to integers --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index b4d4c90..8039d79 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1244,7 +1244,7 @@ v8::Handle MemoryUsage(const v8::Arguments& args) { Handle 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."))); } -- 2.7.4