mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd::js: Fix assertion of handler type for Global object trap.
This commit is contained in:
parent
b3c46af4a1
commit
f0a1177c07
1 changed files with 2 additions and 2 deletions
|
@ -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: ?????????
|
||||
}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue