fixes JS semicolon omissions (#23896)

This commit is contained in:
ringabout
2024-07-27 02:45:52 +08:00
committed by GitHub
parent bd063113ec
commit 39629a1adc
7 changed files with 11 additions and 11 deletions

View File

@@ -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";
}
}
""".}