LibJS: Make PromiseJob store callback as a HeapFunction

This is a speculative fix for a flake seen on CI where a JobCallback
captured by a PromiseJob callback was GC'd prematurely.
This commit is contained in:
Andreas Kling 2024-03-25 14:18:22 +01:00
commit 41cc8e75f2
Notes: sideshowbarker 2024-07-17 07:06:47 +09:00
6 changed files with 23 additions and 17 deletions

View file

@ -296,6 +296,9 @@ struct TimeZoneMethods;
struct PartialDurationRecord;
};
template<typename T>
class HeapFunction;
template<typename T>
requires(!IsLvalueReference<T>)
class ThrowCompletionOr;