0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-03 09:18:19 +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(), this->_name.c_str(),
flags, flags,
handle_add, handle_add, // flags & JSCLASS_GLOBAL_FLAGS? nullptr : handle_add,
handle_del, handle_del,
handle_get, handle_get,
handle_set, handle_set,
@ -145,7 +145,7 @@ ircd::js::trap::trap(std::string name,
handle_call, handle_call,
handle_inst, handle_inst,
handle_ctor, handle_ctor,
handle_trace, flags & JSCLASS_GLOBAL_FLAGS? JS_GlobalObjectTraceHook : handle_trace,
{ this } // reserved[0] TODO: ????????? { this } // reserved[0] TODO: ?????????
} }
{ {