0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

ircd::js: Swap the flags and arity argument order for trap::function.

This commit is contained in:
Jason Volk 2016-11-25 22:52:56 -08:00
parent f2340367be
commit a149d56afa
2 changed files with 4 additions and 4 deletions

View file

@ -31,8 +31,8 @@ struct trap::function
trap *member;
const std::string name;
const uint arity;
const uint flags;
const uint arity;
closure lambda;
protected:
@ -47,8 +47,8 @@ struct trap::function
function(trap &,
std::string name,
const uint &arity = 0,
const uint &flags = 0,
const uint &arity = 0,
const closure & = {});
function(function &&) = delete;

View file

@ -642,13 +642,13 @@ ircd::js::trap::property::on_set(function::handle,
ircd::js::trap::function::function(trap &member,
std::string name,
const uint &arity,
const uint &flags,
const uint &arity,
const closure &lambda)
:member{&member}
,name{std::move(name)}
,arity{arity}
,flags{flags}
,arity{arity}
,lambda{lambda}
{
member.memfun.emplace(this->name, this);