#include "natives.h"
#include <stdio.h>
+#include <stdlib.h>
+#include <strings.h>
#include <assert.h>
#include <string>
Handle<Script> script = Script::Compile(source, filename);
if (script.IsEmpty()) {
ReportException(&try_catch);
- ::exit(1);
+ exit(1);
}
Handle<Value> result = script->Run();
if (result.IsEmpty()) {
ReportException(&try_catch);
- ::exit(1);
+ exit(1);
}
return scope.Close(result);
int r = 0;
if (args.Length() > 0)
r = args[0]->IntegerValue();
- ::exit(r);
+ exit(r);
return Undefined();
}
else
fprintf(stderr, FATAL_ERROR " %s\n", message);
- ::exit(1);
+ exit(1);
}
node::FatalException (TryCatch &try_catch)
{
ReportException(&try_catch);
- ::exit(1);
+ exit(1);
}
static ev_async eio_watcher;