diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-02-02 16:43:45 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-02-02 16:43:45 +0100 |
commit | f8f3dc70b6208d94991e52e9e034ac05e8bdac03 (patch) | |
tree | e453061daf587f3a39e71cd6e4bb2046d767f36f /js/src | |
parent | a31b9e067c1c98bb96200514d5e15830aaefbbe1 (diff) | |
download | UXP-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/src')
-rw-r--r-- | js/src/jsstr.cpp | 5 |
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* |