File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2356,6 +2356,7 @@ void FatalException(Isolate* isolate,
23562356 // failed before the process._fatalException function was added!
23572357 // this is probably pretty bad. Nothing to do but report and exit.
23582358 ReportException (env, error, message);
2359+ if (!node_is_nwjs)
23592360 exit (6 );
23602361 }
23612362
@@ -2371,11 +2372,13 @@ void FatalException(Isolate* isolate,
23712372 if (fatal_try_catch.HasCaught ()) {
23722373 // the fatal exception function threw, so we must exit
23732374 ReportException (env, fatal_try_catch);
2375+ if (!node_is_nwjs)
23742376 exit (7 );
23752377 }
23762378
23772379 if (false == caught->BooleanValue ()) {
23782380 ReportException (env, error, message);
2381+ if (!node_is_nwjs)
23792382 exit (1 );
23802383 }
23812384}
@@ -3222,7 +3225,7 @@ void LoadEnvironment(Environment* env) {
32223225 HandleScope handle_scope (env->isolate ());
32233226
32243227 env->isolate ()->SetFatalErrorHandler (node::OnFatalError);
3225- if (!node_is_nwjs)
3228+ // if (!node_is_nwjs)
32263229 env->isolate ()->AddMessageListener (OnMessage);
32273230
32283231 // Compile, execute the src/node.js file. (Which was included as static C
You can’t perform that action at this time.
0 commit comments