Skip to content
  • Philip Chimento's avatar
    context: Set a FinalizationRegistry cleanup callback · 2710f9be
    Philip Chimento authored
    In order for FinalizationRegistry to work, the host needs to set a
    callback which will schedule the FinalizationRegistry callback to be run
    at an appropriate time.
    
    In SpiderMonkey, the jsshell does this after running microtasks (note
    that the callback may queue more microtasks.) We do the same here.
    2710f9be