[Pkg-javascript-commits] [json-js] 08/85: !isFinite
Jonas Smedegaard
dr at jones.dk
Mon Mar 14 10:39:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository json-js.
commit 8e0b15cb492f63067a88ad786e4d5fc0fa89a241
Author: Douglas Crockford <douglas at crockford.com>
Date: Sat Mar 5 17:29:18 2011 -0800
!isFinite
---
json_parse.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/json_parse.js b/json_parse.js
index 5a8a8ef..6c3ccbf 100755
--- a/json_parse.js
+++ b/json_parse.js
@@ -1,6 +1,6 @@
/*
http://www.JSON.org/json_parse.js
- 2011-02-23
+ 2011-03-06
Public Domain.
@@ -137,7 +137,7 @@ var json_parse = (function () {
}
}
number = +string;
- if (isNaN(number)) {
+ if (!isFinite(number)) {
error("Bad number");
} else {
return number;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/json-js.git
More information about the Pkg-javascript-commits
mailing list