aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/parse.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 4c548a26..cb35118a 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -182,7 +182,8 @@ function parse_js_number(num) {
} else if (RE_OCT_NUMBER.test(num)) {
return parseInt(num.substr(1), 8);
} else {
- return parseFloat(num);
+ var val = parseFloat(num);
+ if (val == num) return val;
}
};