elif on JS instead of generic else

This commit is contained in:
Simon Hafner
2013-02-15 20:28:13 -06:00
parent 962b311727
commit a50393af78

View File

@@ -428,7 +428,7 @@ when not defined(JS):
proc cpuTime(): float =
result = toFloat(int(clock())) / toFloat(clocksPerSec)
else:
elif defined(JS):
proc newDate(): TTime {.importc: "new Date", nodecl.}
proc getTime(): TTime = return newDate()