mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
JS codegen: make 'echo' use console.log unless you define -d:nimOldEcho
This commit is contained in:
@@ -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.} =
|
||||
|
||||
Reference in New Issue
Block a user