JS codegen: make 'echo' use console.log unless you define -d:nimOldEcho

This commit is contained in:
Andreas Rumpf
2017-06-28 16:18:19 +02:00
parent 5334fd4533
commit 3993718335

View File

@@ -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.} =