This commit is contained in:
Araq
2018-12-16 19:17:09 +01:00
parent bae662fa8a
commit 7ec77684e9

View File

@@ -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):