Browse Source

Was using the old node object to get the int from the constant.

v0.7.4-release
Jonas Pfenniger 15 years ago
committed by Ryan Dahl
parent
commit
7a755e04a9
  1. 2
      src/node_child_process.cc

2
src/node_child_process.cc

@ -148,7 +148,7 @@ Handle<Value> ChildProcess::Kill(const Arguments& args) {
} else if (args[0]->IsString()) { } else if (args[0]->IsString()) {
Local<String> signame = args[0]->ToString(); Local<String> signame = args[0]->ToString();
Local<Object> process = Context::GetCurrent()->Global(); Local<Object> process = Context::GetCurrent()->Global();
Local<Object> node_obj = process->Get(String::NewSymbol("node"))->ToObject(); Local<Object> node_obj = process->Get(String::NewSymbol("process"))->ToObject();
Local<Value> sig_v = node_obj->Get(signame); Local<Value> sig_v = node_obj->Get(signame);
if (!sig_v->IsNumber()) { if (!sig_v->IsNumber()) {

Loading…
Cancel
Save