mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +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.