mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibWeb: Use JS::SafeFunction for module fetching callbacks
This fixes another GC crash seen on https://shopify.com/ Found it by collecting garbage after every 500th heap allocation.
This commit is contained in:
parent
390ade3cf4
commit
66c41e7c45
Notes:
sideshowbarker
2024-07-16 22:51:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/66c41e7c45 Pull-request: https://github.com/SerenityOS/serenity/pull/18640
@ -12,7 +12,7 @@
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
using ModuleCallback = Function<void(JavaScriptModuleScript*)>;
|
||||
using ModuleCallback = JS::SafeFunction<void(JavaScriptModuleScript*)>;
|
||||
|
||||
class DescendantFetchingContext : public RefCounted<DescendantFetchingContext> {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user