made nodecl implicit for vars in the js backend. (#5297)

This commit is contained in:
Michael Jendrusch 2017-01-29 17:34:08 +01:00 • committed by Andreas Rumpf
commit d75760f5d3
3 changed files with 15 additions and 2 deletions

View file

@ -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"