summaryrefslogtreecommitdiff
path: root/mail/thunderbird45/patches/patch-mozilla_js_xpconnect_src_XPCConvert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mail/thunderbird45/patches/patch-mozilla_js_xpconnect_src_XPCConvert.cpp')
-rw-r--r--mail/thunderbird45/patches/patch-mozilla_js_xpconnect_src_XPCConvert.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/thunderbird45/patches/patch-mozilla_js_xpconnect_src_XPCConvert.cpp b/mail/thunderbird45/patches/patch-mozilla_js_xpconnect_src_XPCConvert.cpp
new file mode 100644
index 00000000000..37bae72a9a3
--- /dev/null
+++ b/mail/thunderbird45/patches/patch-mozilla_js_xpconnect_src_XPCConvert.cpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-mozilla_js_xpconnect_src_XPCConvert.cpp,v 1.1 2017/04/27 13:38:19 ryoon Exp $
+
+--- mozilla/js/xpconnect/src/XPCConvert.cpp.orig 2016-04-07 21:33:28.000000000 +0000
++++ mozilla/js/xpconnect/src/XPCConvert.cpp
+@@ -134,7 +134,7 @@ XPCConvert::NativeData2JS(MutableHandleV
+ d.setNumber(*static_cast<const float*>(s));
+ return true;
+ case nsXPTType::T_DOUBLE:
+- d.setNumber(*static_cast<const double*>(s));
++ d.setNumber(CanonicalizeNaN(*static_cast<const double*>(s)));
+ return true;
+ case nsXPTType::T_BOOL :
+ d.setBoolean(*static_cast<const bool*>(s));