summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/API/JSValueRef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/API/JSValueRef.cpp')
-rw-r--r--Source/JavaScriptCore/API/JSValueRef.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/JavaScriptCore/API/JSValueRef.cpp b/Source/JavaScriptCore/API/JSValueRef.cpp
index de84508c1..5ff7c03c6 100644
--- a/Source/JavaScriptCore/API/JSValueRef.cpp
+++ b/Source/JavaScriptCore/API/JSValueRef.cpp
@@ -217,7 +217,7 @@ JSValueRef JSValueMakeNumber(JSContextRef ctx, double value)
// generated internally to JavaScriptCore naturally have that representation,
// but an external NaN might not.
if (isnan(value))
- value = std::numeric_limits<double>::quiet_NaN();
+ value = QNaN;
return toRef(exec, jsNumber(value));
}
@@ -282,7 +282,7 @@ double JSValueToNumber(JSContextRef ctx, JSValueRef value, JSValueRef* exception
if (exception)
*exception = toRef(exec, exec->exception());
exec->clearException();
- number = std::numeric_limits<double>::quiet_NaN();
+ number = QNaN;
}
return number;
}