diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-06-28 16:18:19 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-06-28 16:18:19 +0200 |
commit | 39937183356ba3423c510d76255718daff995e25 (patch) | |
tree | dffca50a8606202bae85b777126198d88ed340e2 | |
parent | 5334fd453317fef04ea929fe4a4f4f2e0f6f5dbb (diff) | |
download | Nim-39937183356ba3423c510d76255718daff995e25.tar.gz |
JS codegen: make 'echo' use console.log unless you define -d:nimOldEcho
-rw-r--r-- | lib/system/jssys.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim index 8a81a550a..768f9bc17 100644 --- a/lib/system/jssys.nim +++ b/lib/system/jssys.nim @@ -446,7 +446,7 @@ when defined(kwin): print(buf); """ -elif defined(nodejs): +elif not defined(nimOldEcho): proc ewriteln(x: cstring) = log(x) proc rawEcho {.compilerproc, asmNoStackFrame.} = |