$ now works for unsigned intergers with nim js (#14122)

* $(unsigned) now works for js
* move NimMajor+friends closer to NimVersion according as per reviewer feedback
This commit is contained in:
Timothee Cour 2020-04-27 10:15:17 -07:00 • committed by GitHub
commit a3a317b76d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 96 additions and 4 deletions

View file

@ -2049,10 +2049,6 @@ template unlikely*(val: bool): bool =
else:
unlikelyProc(val)
import system/dollars
export dollars
const
NimMajor* {.intdefine.}: int = 1
## is the major number of Nim's version. Example:
@ -2063,10 +2059,15 @@ const
NimMinor* {.intdefine.}: int = 3
## is the minor number of Nim's version.
## Odd for devel, even for releases.
NimPatch* {.intdefine.}: int = 1
## is the patch number of Nim's version.
import system/dollars
export dollars
const
NimVersion*: string = $NimMajor & "." & $NimMinor & "." & $NimPatch
## is the version of Nim as a string.