mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00

The dtor for PersistentRooted<> removes it from a linked list, which means we need a static ctor to register that dtor with the atexit machinary. So the easiest thing to do is make sScriptedInterruptCallback a pointer that points to a PersistentRootedValue we allocate on the heap.