parse out-of-range numerals correctly (#4781)

This commit is contained in:
Alex Lam S.L
2021-03-15 22:52:21 +00:00
committed by GitHub
parent 176581d732
commit aa6e33e208
2 changed files with 40 additions and 28 deletions

View File

@@ -1,3 +1,10 @@
literal_infinity: {
input: {
console.log(2e308, -1e2345);
}
expect_exact: "console.log(1/0,-(1/0));"
}
parentheses_for_prototype_functions: {
beautify = {
beautify: true,