Skip to content

Commit

Permalink
fixes #12502
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Oct 27, 2019
1 parent 1208291 commit cbbc2cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2048,7 +2048,7 @@ const
## is the value that should be passed to `quit <#quit,int>`_ to indicate
## failure.

when defined(nodejs) and not defined(nimscript):
when defined(js) and defined(nodejs) and not defined(nimscript):
var programResult* {.importc: "process.exitCode".}: int
programResult = 0
elif hostOS != "standalone":
Expand Down Expand Up @@ -2092,7 +2092,7 @@ elif defined(genode):



elif defined(nodejs) and not defined(nimscript):
elif defined(js) and defined(nodejs) and not defined(nimscript):
proc quit*(errorcode: int = QuitSuccess) {.magic: "Exit",
importc: "process.exit", noreturn.}

Expand Down

0 comments on commit cbbc2cc

Please sign in to comment.