summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-12-16 19:17:09 +0100
committerAraq <rumpf_a@web.de>2018-12-16 19:17:09 +0100
commit7ec77684e9d4c429efae64e9141bf549faef3865 (patch)
tree9ee9a01681542a9da8bc26fb8cf4d15693d1c17c
parentbae662fa8a5ab005a13ff7f5a0d08f22b14cb6ec (diff)
downloadNim-7ec77684e9d4c429efae64e9141bf549faef3865.tar.gz
fixes #9153
-rw-r--r--lib/system.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 47efda3fc..d51f9e899 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -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):