diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-07-27 02:45:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-26 20:45:52 +0200 |
commit | 39629a1adcbcc822508acc3983f444328f90dd85 (patch) | |
tree | d60cad7a004aee263a9e3dfd6b1e183ca95f0ad9 /lib/std | |
parent | bd063113ec3c00d80fc32a5581ac9552682f6b43 (diff) | |
download | Nim-39629a1adcbcc822508acc3983f444328f90dd85.tar.gz |
fixes JS semicolon omissions (#23896)
Diffstat (limited to 'lib/std')
-rw-r--r-- | lib/std/formatfloat.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/formatfloat.nim b/lib/std/formatfloat.nim index 63d344215..9258245f6 100644 --- a/lib/std/formatfloat.nim +++ b/lib/std/formatfloat.nim @@ -109,11 +109,11 @@ when defined(js): return n.toString().match(/^-?\d+$/); } if (Number.isSafeInteger(`a`)) - `result` = `a` === 0 && 1 / `a` < 0 ? "-0.0" : `a`+".0" + `result` = `a` === 0 && 1 / `a` < 0 ? "-0.0" : `a`+".0"; else { - `result` = `a`+"" + `result` = `a`+""; if(nimOnlyDigitsOrMinus(`result`)){ - `result` = `a`+".0" + `result` = `a`+".0"; } } """.} |