style fix: change 'JS' to 'js' to make it consistent (#13168)

This commit is contained in:
Miran
2020-01-16 14:14:03 +01:00
committed by Andreas Rumpf
parent 54bfd69a27
commit 352232e62d
14 changed files with 60 additions and 60 deletions

View File

@@ -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
doAssert low(MonoTime) < t1