Browse Source

Add handlescope and flush to process.reallyExit()

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
6f92d8f3b0
  1. 7
      src/node.cc

7
src/node.cc

@ -465,11 +465,10 @@ static Handle<Value> Umask(const Arguments& args){
} }
v8::Handle<v8::Value> Exit(const v8::Arguments& args) { v8::Handle<v8::Value> Exit(const v8::Arguments& args) {
int r = 0; HandleScope scope;
if (args.Length() > 0)
r = args[0]->IntegerValue();
fflush(stderr); fflush(stderr);
exit(r); Stdio::Flush();
exit(args[0]->IntegerValue());
return Undefined(); return Undefined();
} }

Loading…
Cancel
Save