Skip to content

Commit

Permalink
[nodejs] exit gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
RealyUniqueName committed Sep 22, 2023
1 parent e4a43eb commit 44faf6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utest/ui/text/PlainTextReport.hx
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ class PlainTextReport implements IReport<PlainTextReport> {
#elseif js
if(js.Syntax.code('typeof phantom != "undefined"'))
js.Syntax.code('phantom').exit(result.stats.isOk ? 0 : 1);
if(js.Syntax.code('typeof process != "undefined"'))
js.Syntax.code('process').exit(result.stats.isOk ? 0 : 1);
if(js.Syntax.code('typeof process != "undefined"') && !result.stats.isOk)
js.Syntax.code('process').exitCode = 1;
#elseif air
flash.desktop.NativeApplication.nativeApplication.exit(result.stats.isOk ? 0 : 1);
#elseif (flash && exit)
Expand Down

0 comments on commit 44faf6e

Please sign in to comment.