made nodecl implicit for vars in the js backend. (#5297)
This commit is contained in:
parent
5e1bdb4d83
commit
d75760f5d3
3 changed files with 15 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ type
|
|||
log*: proc() {.nimcall varargs.}
|
||||
Console = ref ConsoleObj
|
||||
|
||||
var console* {.importc nodecl.}: Console
|
||||
var console* {.importc.}: Console
|
||||
|
||||
when isMainModule:
|
||||
console.log "Hello, world"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue