summary refs log tree commit diff stats
path: root/lib/std/monotimes.nim
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2020-01-16 14:14:03 +0100
committerAndreas Rumpf <rumpf_a@web.de>2020-01-16 14:14:03 +0100
commit352232e62dea88191339af3aaa943cb93fb4db02 (patch)
tree725293f5344928422115a1cf358c8f3b2cf0d1b5 /lib/std/monotimes.nim
parent54bfd69a27db6015e4eb7ed0b57b01b7924be2f6 (diff)
downloadNim-352232e62dea88191339af3aaa943cb93fb4db02.tar.gz
style fix: change 'JS' to 'js' to make it consistent (#13168)
Diffstat (limited to 'lib/std/monotimes.nim')
-rw-r--r--lib/std/monotimes.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/monotimes.nim b/lib/std/monotimes.nim
index 4c570d2ee..af08c576e 100644
--- a/lib/std/monotimes.nim
+++ b/lib/std/monotimes.nim
@@ -100,7 +100,7 @@ proc getMonoTime*(): MonoTime {.tags: [TimeEffect].} =
   ## this proc calls `window.performance.now()`, which is not supported by
   ## older browsers. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now)
   ## for more information.
-  when defined(JS):
+  when defined(js):
     let ticks = getJsTicks()
     result = MonoTime(ticks: (ticks * 1_000_000_000).int64)
   elif defined(macosx):
@@ -171,4 +171,4 @@ when isMainModule:
   doAssert t1 <= t1
   doAssert not(t2 < t1)
   doAssert t1 < high(MonoTime)
-  doAssert low(MonoTime) < t1
\ No newline at end of file
+  doAssert low(MonoTime) < t1