diff --git a/Libraries/LibGC/Function.h b/Libraries/LibGC/Function.h index 047ea765cc5..9bc6dcf2518 100644 --- a/Libraries/LibGC/Function.h +++ b/Libraries/LibGC/Function.h @@ -17,7 +17,7 @@ class Function final : public Cell { GC_CELL(Function, Cell); public: - static Ref create(Heap& heap, AK::Function function) + static Ref create(Heap& heap, ESCAPING AK::Function function) { return heap.allocate(move(function)); } @@ -42,7 +42,7 @@ private: }; template> -static Ref> create_function(Heap& heap, Callable&& function) +static Ref> create_function(Heap& heap, ESCAPING Callable&& function) { return Function::create(heap, AK::Function { forward(function) }); }