We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b6b9e4 commit 9378575Copy full SHA for 9378575
src/node/serialization.cc
@@ -457,6 +457,8 @@ class JSONAttrSetter {
457
*value = std::numeric_limits<double>::infinity();
458
} else if (is.str() == "-inf") {
459
*value = -std::numeric_limits<double>::infinity();
460
+ } else if (is.str() == "nan") {
461
+ *value = std::numeric_limits<double>::quiet_NaN();
462
} else {
463
is >> *value;
464
if (is.fail()) {
0 commit comments