mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 06:45:27 +00:00
style fix: change 'JS' to 'js' to make it consistent (#13168)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user