[X2Go-Commits] [pale-moon] 64/102: Fix build error with JS_HAS_TOSOURCE undefined.

git-admin at x2go.org git-admin at x2go.org
Mon Feb 25 23:25:52 CET 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch upstream/28.4.0
in repository pale-moon.

commit f8f3dc70b6208d94991e52e9e034ac05e8bdac03
Author: wolfbeast <mcwerewolf at wolfbeast.com>
Date:   Sat Feb 2 16:43:45 2019 +0100

    Fix build error with JS_HAS_TOSOURCE undefined.
---
 js/src/jsstr.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/js/src/jsstr.cpp b/js/src/jsstr.cpp
index 4151d01..e3b5708 100644
--- a/js/src/jsstr.cpp
+++ b/js/src/jsstr.cpp
@@ -3070,8 +3070,11 @@ js::ValueToSource(JSContext* cx, HandleValue v)
 
         return ToString<CanGC>(cx, v);
     }
-
+#if JS_HAS_TOSOURCE
     return ObjectToSource(cx, obj);
+#else
+    return ToString<CanGC>(cx, v);
+#endif
 }
 
 JSString*

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git


More information about the x2go-commits mailing list