fixes #12502
This commit is contained in:
parent
120829155a
commit
cbbc2cc237
1 changed files with 2 additions and 2 deletions
|
|
@ -2048,7 +2048,7 @@ const
|
||||||
## is the value that should be passed to `quit <#quit,int>`_ to indicate
|
## is the value that should be passed to `quit <#quit,int>`_ to indicate
|
||||||
## failure.
|
## failure.
|
||||||
|
|
||||||
when defined(nodejs) and not defined(nimscript):
|
when defined(js) and defined(nodejs) and not defined(nimscript):
|
||||||
var programResult* {.importc: "process.exitCode".}: int
|
var programResult* {.importc: "process.exitCode".}: int
|
||||||
programResult = 0
|
programResult = 0
|
||||||
elif hostOS != "standalone":
|
elif hostOS != "standalone":
|
||||||
|
|
@ -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",
|
proc quit*(errorcode: int = QuitSuccess) {.magic: "Exit",
|
||||||
importc: "process.exit", noreturn.}
|
importc: "process.exit", noreturn.}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue