aboutsummaryrefslogtreecommitdiffstats
path: root/src/3rdparty/javascriptcore/DateMath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/javascriptcore/DateMath.cpp')
-rw-r--r--src/3rdparty/javascriptcore/DateMath.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/3rdparty/javascriptcore/DateMath.cpp b/src/3rdparty/javascriptcore/DateMath.cpp
index 9f66d91013..be99d2ca25 100644
--- a/src/3rdparty/javascriptcore/DateMath.cpp
+++ b/src/3rdparty/javascriptcore/DateMath.cpp
@@ -345,8 +345,15 @@ double timeClip(double t)
return NaN;
return t >= 0 ? floor(t) : ceil(t);
#else
+
+#if defined(__QNXNTO__)
+ if (!isfinite(t) || fabs(t) > maxECMAScriptTime)
+ return NaN;
+#else
if (!std::isfinite(t) || fabs(t) > maxECMAScriptTime)
return NaN;
+#endif
+
return trunc(t);
#endif
}