diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-07-14 04:14:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 13:14:32 +0200 |
commit | e07d661d1600989c281a270d90563f1c60392b9d (patch) | |
tree | a708cc7b7bedf1473112907e2eb4a89d0ddd7003 /lib/system.nim | |
parent | ffaf4797be4a8e8aec5ada9863ccdec66a066930 (diff) | |
download | Nim-e07d661d1600989c281a270d90563f1c60392b9d.tar.gz |
fix #14475; unittest.require now works with `nim c`; require and check now works with -d:nodejs (#14676)
* fix #14475; make unittest work with -d:nodejs * fixup * fixup * disable inim, delaunay which failed after unittest.require got fixed * re-enable tests that have been fixed
Diffstat (limited to 'lib/system.nim')
-rw-r--r-- | lib/system.nim | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/system.nim b/lib/system.nim index 822454626..71eed5bee 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1127,12 +1127,9 @@ const ## is the value that should be passed to `quit <#quit,int>`_ to indicate ## failure. -when defined(js) and defined(nodejs) and not defined(nimscript): - var programResult* {.importc: "process.exitCode".}: int - programResult = 0 -elif hostOS != "standalone": +when not defined(js) and hostOS != "standalone": var programResult* {.compilerproc, exportc: "nim_program_result".}: int - ## deprecated, prefer ``quit`` + ## deprecated, prefer `quit` or `exitprocs.getProgramResult`, `exitprocs.setProgramResult`. import std/private/since |