JS codegen: make 'echo' use console.log unless you define -d:nimOldEcho
This commit is contained in:
parent
5334fd4533
commit
3993718335
1 changed files with 1 additions and 1 deletions
|
|
@ -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.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue