mirror of
https://github.com/donl/JSON-js.git
synced 2026-05-25 22:06:23 -06:00
!isFinite
This commit is contained in:
parent
ad6079cbd8
commit
8e0b15cb49
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue