refine precision limits on unsafe_math (#3589)

This commit is contained in:
Alex Lam S.L
2019-11-17 01:16:42 +08:00
committed by GitHub
parent 552be61c4d
commit d1b2ecec27
2 changed files with 16 additions and 1 deletions

View File

@@ -917,3 +917,17 @@ issue_3547_4: {
"number 0",
]
}
unsafe_math_rounding: {
options = {
evaluate: true,
unsafe_math: true,
}
input: {
console.log(4 / -3 + 1 === 1 / -3);
}
expect: {
console.log(false);
}
expect_stdout: "false"
}