mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00: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:
@@ -12,7 +12,7 @@
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
using ModuleCallback = Function<void(JavaScriptModuleScript*)>;
|
||||
using ModuleCallback = JS::SafeFunction<void(JavaScriptModuleScript*)>;
|
||||
|
||||
class DescendantFetchingContext : public RefCounted<DescendantFetchingContext> {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user