mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
Notes:
sideshowbarker
2024-07-17 00:59:43 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/4bc0d8e4c8 Pull-request: https://github.com/SerenityOS/serenity/pull/17669 Reviewed-by: https://github.com/davidot Reviewed-by: https://github.com/linusg ✅
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user