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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue