mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
The WebIDL spec requires that attributes marked [LegacyUnforgeable] share the same getter and setter function objects across all instances within the same Realm. Previously, we were creating new JS::NativeFunction wrappers during every instance initialization, which caused identity checks to fail. This change moves these functions into Bindings::Intrinsics so they are created once per Realm and reused.