summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-02-02 16:43:45 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-02-02 16:43:45 +0100
commitf8f3dc70b6208d94991e52e9e034ac05e8bdac03 (patch)
treee453061daf587f3a39e71cd6e4bb2046d767f36f /js
parenta31b9e067c1c98bb96200514d5e15830aaefbbe1 (diff)
downloadUXP-f8f3dc70b6208d94991e52e9e034ac05e8bdac03.tar
UXP-f8f3dc70b6208d94991e52e9e034ac05e8bdac03.tar.gz
UXP-f8f3dc70b6208d94991e52e9e034ac05e8bdac03.tar.lz
UXP-f8f3dc70b6208d94991e52e9e034ac05e8bdac03.tar.xz
UXP-f8f3dc70b6208d94991e52e9e034ac05e8bdac03.zip
Fix build error with JS_HAS_TOSOURCE undefined.
Diffstat (limited to 'js')
-rw-r--r--js/src/jsstr.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/src/jsstr.cpp b/js/src/jsstr.cpp
index 4151d012b..e3b5708ca 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*