style fix: change 'JS' to 'js' to make it consistent (#13168)
This commit is contained in:
parent
54bfd69a27
commit
352232e62d
14 changed files with 60 additions and 60 deletions
|
|
@ -151,7 +151,7 @@ proc hash*[A](x: openArray[A]): Hash
|
|||
proc hash*[A](x: set[A]): Hash
|
||||
|
||||
|
||||
when defined(JS):
|
||||
when defined(js):
|
||||
proc imul(a, b: uint32): uint32 =
|
||||
# https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/imul
|
||||
let mask = 0xffff'u32
|
||||
|
|
@ -267,7 +267,7 @@ proc hash*(x: cstring): Hash =
|
|||
inc i
|
||||
result = !$result
|
||||
else:
|
||||
when not defined(JS) and defined(nimToOpenArrayCString):
|
||||
when not defined(js) and defined(nimToOpenArrayCString):
|
||||
murmurHash(toOpenArrayByte(x, 0, x.high))
|
||||
else:
|
||||
let xx = $x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue