mirror of
https://github.com/servo/servo
synced 2026-05-09 08:32:31 +02:00
As mentioned in #40600 we will need this to properly handle &mut JSContext (we cannot pass it to drop) and I think this wrappers are preferred ways of doing this in rust as it is safe to forget (not call drop) which is unsound in this case (due to realm stack at least). Revieable per commits. Testing: Just a refactor, but should be covered by WPT --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
376 KiB
376 KiB