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
commit 3993718335

View file

@ -446,7 +446,7 @@ when defined(kwin):
print(buf); print(buf);
""" """
elif defined(nodejs): elif not defined(nimOldEcho):
proc ewriteln(x: cstring) = log(x) proc ewriteln(x: cstring) = log(x)
proc rawEcho {.compilerproc, asmNoStackFrame.} = proc rawEcho {.compilerproc, asmNoStackFrame.} =