From f8f3dc70b6208d94991e52e9e034ac05e8bdac03 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 2 Feb 2019 16:43:45 +0100 Subject: Fix build error with JS_HAS_TOSOURCE undefined. --- js/src/jsstr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'js/src/jsstr.cpp') 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(cx, v); } - +#if JS_HAS_TOSOURCE return ObjectToSource(cx, obj); +#else + return ToString(cx, v); +#endif } JSString* -- cgit v1.2.3