mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
This is not a very pleasant fix, but matches a similar const_cast that we do to return JS objects returned in a union. Ideally we would 'simply' remove the const from the value being visited in the variant, but that opens up a whole can of worms where we are currently relying on temporary lifetime extension so that interfaces can return a Variant of GC::Ref's to JS::Objects.