0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-01 08:18:20 +02:00

ircd::js: Fix assertion of handler type for Global object trap.

This commit is contained in:
Jason Volk 2016-10-18 17:13:12 -07:00
parent b3c46af4a1
commit f0a1177c07

View file

@ -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: ?????????
}
{