changeset 192:11bc287f7b5a

Irccd: set the prototype of Irccd.Server object
author David Demelier <markand@malikania.fr>
date Mon, 06 Jun 2016 11:48:55 +0200
parents 3cd17993db82
children fea2e87c0fbe
files lib/irccd/mod-server.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/irccd/mod-server.cpp	Mon Jun 06 11:42:57 2016 +0200
+++ b/lib/irccd/mod-server.cpp	Mon Jun 06 11:48:55 2016 +0200
@@ -668,7 +668,7 @@
 	duk_push_pointer(ctx, new std::shared_ptr<Server>(std::move(server)));
 	duk_put_prop_string(ctx, -2, Signature);
 	duk_get_global_string(ctx, Prototype);
-	duk_set_finalizer(ctx, -2);
+	duk_set_prototype(ctx, -2);
 }
 
 std::shared_ptr<Server> duk_require_server(duk_context *ctx, duk_idx_t index)