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
commit 352232e62d
14 changed files with 60 additions and 60 deletions

View file

@ -13,7 +13,7 @@ when hasAlloc:
gcOptimizeTime, ## optimize for speed
gcOptimizeSpace ## optimize for memory footprint
when hasAlloc and not defined(JS) and not usesDestructors:
when hasAlloc and not defined(js) and not usesDestructors:
proc GC_disable*() {.rtl, inl, benign.}
## Disables the GC. If called `n` times, `n` calls to `GC_enable`
## are needed to reactivate the GC.
@ -58,7 +58,7 @@ when hasAlloc and not defined(JS) and not usesDestructors:
## Expands operating GC stack range to `theStackBottom`. Does nothing
## if current stack bottom is already lower than `theStackBottom`.
when hasAlloc and defined(JS):
when hasAlloc and defined(js):
template GC_disable* =
{.warning: "GC_disable is a no-op in JavaScript".}