summary refs log tree commit diff stats
path: root/tests/js/t14153.nim
Commit message (Expand)AuthorAgeFilesLines
* many bugfixes for js (#14158)hlaaftana2020-04-291-0/+22
175adfde862ca701f'>^
1
2
3
4
5
6
7
8
9
10
11










                                                                           
discard """
  output: '''
-1
8
'''
  ccodecheck: "'console.log(-1); function fac_' \\d+ '(n_' \\d+ ')'"
"""
proc fac(n: int): int {.codegenDecl: "console.log(-1); function $2($3)".} =
  return n

echo fac(8)