diff runtime/doc/eval.txt @ 15446:8ac454818352 v8.1.0731

patch 8.1.0731: JS encoding does not handle negative infinity commit https://github.com/vim/vim/commit/5f6b379ff3e34297d171635933f907ec80ed4f05 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 12 14:24:27 2019 +0100 patch 8.1.0731: JS encoding does not handle negative infinity Problem: JS encoding does not handle negative infinity. Solution: Add support for negative infinity for JS encoding. (Dominique Pelle, closes #3792)
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Jan 2019 14:30:06 +0100
parents 90c8ff9c19ee
children 1d2b5c016f17
line wrap: on
line diff
--- 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