diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-12 14:24:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-12 14:24:27 +0100 |
commit | 5f6b379ff3e34297d171635933f907ec80ed4f05 (patch) | |
tree | 3db4bfd51041f31d5920e723fcacb4dfc81dc2ba /runtime | |
parent | ec9d3001cf6fb4ffe142d34762c774e0066de6bb (diff) | |
download | vim-git-5f6b379ff3e34297d171635933f907ec80ed4f05.tar.gz |
patch 8.1.0731: JS encoding does not handle negative infinityv8.1.0731
Problem: JS encoding does not handle negative infinity.
Solution: Add support for negative infinity for JS encoding. (Dominique
Pelle, closes #3792)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 14d6bb4db..86026239a 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -5726,7 +5726,8 @@ json_decode({string}) *json_decode()* "[1, 2, ]" is the same as "[1, 2]". - More floating point numbers are recognized, e.g. "1." for "1.0", or "001.2" for "1.2". Special floating point values - "Infinity" and "NaN" (capitalization ignored) are accepted. + "Infinity", "-Infinity" and "NaN" (capitalization ignored) + are accepted. - Leading zeroes in integer numbers are ignored, e.g. "012" for "12" or "-012" for "-12". - Capitalization is ignored in literal names null, true or @@ -5755,6 +5756,7 @@ json_encode({expr}) *json_encode()* Float floating point number Float nan "NaN" Float inf "Infinity" + Float -inf "-Infinity" String in double quotes (possibly null) Funcref not possible, error List as an array (possibly null); when |