mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
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:
parent
43b0b3fa80
commit
41cc8e75f2
Notes:
sideshowbarker
2024-07-17 07:06:47 +09:00
Author: https://github.com/awesomekling
Commit: 41cc8e75f2
Pull-request: https://github.com/SerenityOS/serenity/pull/23714
6 changed files with 23 additions and 17 deletions
|
@ -296,6 +296,9 @@ struct TimeZoneMethods;
|
|||
struct PartialDurationRecord;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
class HeapFunction;
|
||||
|
||||
template<typename T>
|
||||
requires(!IsLvalueReference<T>)
|
||||
class ThrowCompletionOr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue