Browse Source

process.kill coerces args to integers

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
4227e9d79d
  1. 2
      src/node.cc

2
src/node.cc

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

Loading…
Cancel
Save