summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2013-02-15 20:28:13 -0600
committerSimon Hafner <hafnersimon@gmail.com>2013-02-15 20:28:13 -0600
commita50393af78074449047b146229626d2196441ef2 (patch)
treef6d93f39c8f21cf3e25937bf0bdd215aa0d06c5c /lib
parent962b311727bb460daa92f7a3e1d0e7ce0b7fc16d (diff)
downloadNim-a50393af78074449047b146229626d2196441ef2.tar.gz
elif on JS instead of generic else
Diffstat (limited to 'lib')
-rwxr-xr-xlib/pure/times.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/times.nim b/lib/pure/times.nim
index da8d86363..6a73303d9 100755
--- a/lib/pure/times.nim
+++ b/lib/pure/times.nim
@@ -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()