fixes #9153
This commit is contained in:
parent
bae662fa8a
commit
7ec77684e9
1 changed files with 3 additions and 3 deletions
|
|
@ -1555,7 +1555,7 @@ const
|
|||
## is the value that should be passed to `quit <#quit>`_ to indicate
|
||||
## failure.
|
||||
|
||||
when defined(nodejs):
|
||||
when defined(nodejs) and not defined(nimscript):
|
||||
var programResult* {.importc: "process.exitCode".}: int
|
||||
programResult = 0
|
||||
else:
|
||||
|
|
@ -1601,7 +1601,7 @@ elif defined(genode):
|
|||
|
||||
|
||||
|
||||
elif defined(nodejs):
|
||||
elif defined(nodejs) and not defined(nimscript):
|
||||
proc quit*(errorcode: int = QuitSuccess) {.magic: "Exit",
|
||||
importc: "process.exit", noreturn.}
|
||||
|
||||
|
|
@ -3610,7 +3610,7 @@ elif defined(JS):
|
|||
proc deallocShared(p: pointer) = discard
|
||||
proc reallocShared(p: pointer, newsize: Natural): pointer = discard
|
||||
|
||||
when defined(JS):
|
||||
when defined(JS) and not defined(nimscript):
|
||||
include "system/jssys"
|
||||
include "system/reprjs"
|
||||
elif defined(nimscript):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue