capricorn86 / happy-dom

A JavaScript implementation of a web browser without its graphical user interface
MIT License
3.08k stars 185 forks source link

fix: [#1336] Adds check for if Window and MutationObserver has been d… #1437

Closed capricorn86 closed 1 month ago

capricorn86 commented 1 month ago

…estroyed when triggering listeners

thaggie commented 1 month ago

Thanks, that was fast!

After creating the ticket I build the library locally to a) test that approach (which works fine) and b) try and work out the root cause.

The root cause was that we had old code in our jest setup that was providing it's own versions of requestAnimationFrame / cancelAnimationFrame - removing these stopped the issue for us.