summaryrefslogtreecommitdiff
path: root/js/src/jsstr.cpp
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
commit21397fbcd6cd3905bb5a088fecfee5da38ecccca (patch)
treee453061daf587f3a39e71cd6e4bb2046d767f36f /js/src/jsstr.cpp
parent3b44050ead283bb8069c63c6cc6ce4106cd9173c (diff)
downloaduxp-21397fbcd6cd3905bb5a088fecfee5da38ecccca.tar.gz
Fix build error with JS_HAS_TOSOURCE undefined.
Diffstat (limited to 'js/src/jsstr.cpp')
-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 4151d012b6..e3b5708ca2 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*