From 48045d5b2362f25d9153cf2c71a1061f9cdabf72 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 23 Aug 2017 15:34:55 -0600 Subject: [PATCH] fixup! ircd::js: Upgrade SpiderMonkey to esr52 from esr45. --- include/ircd/js.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/include/ircd/js.h b/include/ircd/js.h index f0e5c5119..a4ea39a3f 100644 --- a/include/ircd/js.h +++ b/include/ircd/js.h @@ -55,3 +55,27 @@ struct init } // namespace js } // namespace ircd + +#ifndef RB_ENABLE_JS +// +// Stub definitions for when JS isn't enabled because the definition +// file is not compiled at all. +// + +inline +ircd::js::init::init() +{ +} + +inline +ircd::js::init::~init() +{ +} + +inline +const char *ircd::js::version(const ver &ver) +{ + return "DISABLED"; +} + +#endif // !RB_ENABLE_JS