mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibJS: Fix compilation of operator= for JS::SafeFunction
operator= for JS::SafeFunction was missing the CallableKind parameter in the call to init_with_callable. This was not picked up before as nothing used operator= on JS::SafeFunction.
This commit is contained in:
parent
80fad65e5b
commit
4bc0d8e4c8
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ public:
|
|||
requires((AK::IsFunctionObject<CallableType> && IsCallableWithArguments<CallableType, Out, In...>))
|
||||
{
|
||||
clear();
|
||||
init_with_callable(forward<CallableType>(callable));
|
||||
init_with_callable(forward<CallableType>(callable), CallableKind::FunctionObject);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@ public:
|
|||
{
|
||||
clear();
|
||||
if (f)
|
||||
init_with_callable(move(f));
|
||||
init_with_callable(move(f), CallableKind::FunctionPointer);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue