changeset 951:d11c2b0001ce

js: add Irccd.version back
author David Demelier <markand@malikania.fr>
date Sat, 16 Jan 2021 23:25:32 +0100
parents 9fcb0038fe0a
children 2899474aefd7
files lib/irccd/jsapi-irccd.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/irccd/jsapi-irccd.c	Sat Jan 16 23:23:31 2021 +0100
+++ b/lib/irccd/jsapi-irccd.c	Sat Jan 16 23:25:32 2021 +0100
@@ -21,6 +21,7 @@
 
 #include <duktape.h>
 
+#include "config.h"
 #include "util.h"
 
 static duk_ret_t
@@ -289,7 +290,6 @@
 	duk_push_object(ctx);
 
 	/* Irccd.version (property) */
-#if 0
 	duk_push_object(ctx);
 	duk_push_int(ctx, IRCCD_VERSION_MAJOR);
 	duk_put_prop_string(ctx, -2, "major");
@@ -298,7 +298,6 @@
 	duk_push_int(ctx, IRCCD_VERSION_PATCH);
 	duk_put_prop_string(ctx, -2, "patch");
 	duk_put_prop_string(ctx, -2, "version");
-#endif
 
 	/* Create the system_error that inherits from Error. */
 	duk_push_c_function(ctx, SystemError_constructor, 2);