From f0a1177c0745958e0c1a6a6d6aa04c71c5565eb1 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 18 Oct 2016 17:13:12 -0700 Subject: [PATCH] ircd::js: Fix assertion of handler type for Global object trap. --- ircd/js.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircd/js.cc b/ircd/js.cc index 24b2637b6..fb7785ecd 100644 --- a/ircd/js.cc +++ b/ircd/js.cc @@ -134,7 +134,7 @@ ircd::js::trap::trap(std::string name, { this->_name.c_str(), flags, - handle_add, + handle_add, // flags & JSCLASS_GLOBAL_FLAGS? nullptr : handle_add, handle_del, handle_get, handle_set, @@ -145,7 +145,7 @@ ircd::js::trap::trap(std::string name, handle_call, handle_inst, handle_ctor, - handle_trace, + flags & JSCLASS_GLOBAL_FLAGS? JS_GlobalObjectTraceHook : handle_trace, { this } // reserved[0] TODO: ????????? } {