fix nim js cmp fails at CT (#16473)
This commit is contained in:
parent
4cf605dcf6
commit
3f9a2ebea5
4 changed files with 49 additions and 24 deletions
|
|
@ -2394,14 +2394,8 @@ when notJSnotNims:
|
|||
""".}
|
||||
|
||||
when defined(js):
|
||||
when not defined(nimscript):
|
||||
include "system/jssys"
|
||||
include "system/reprjs"
|
||||
else:
|
||||
proc cmp(x, y: string): int =
|
||||
if x == y: return 0
|
||||
if x < y: return -1
|
||||
return 1
|
||||
include "system/jssys"
|
||||
include "system/reprjs"
|
||||
|
||||
when defined(js) or defined(nimscript):
|
||||
proc addInt*(result: var string; x: int64) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue