diff options
Diffstat (limited to 'tests/js/tvarargs.nim')
-rw-r--r-- | tests/js/tvarargs.nim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/js/tvarargs.nim b/tests/js/tvarargs.nim index e2366d7a9..8d57af58d 100644 --- a/tests/js/tvarargs.nim +++ b/tests/js/tvarargs.nim @@ -1,3 +1,6 @@ +discard """ + output: "Hello, world" +""" # bug #3584 @@ -6,7 +9,7 @@ type log*: proc() {.nimcall varargs.} Console = ref ConsoleObj -var console* {.importc nodecl.}: Console +var console* {.importc.}: Console -when isMainModule: +when true: console.log "Hello, world" |