Skip to content

Commit 65b297d

Browse files
committed
fixup! chromium-integration
1 parent f1993fc commit 65b297d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/node.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)