jsds_NotifyPendingDeadScripts ()
jsds_NotifyPendingDeadScripts (JSContext *cx)
jsds_NotifyPendingDeadScripts (){    nsCOMPtr<jsdIScriptHook> hook = 0;       gJsds->GetScriptHook (getter_AddRefs(hook));    if (hook)    {        DeadScript *ds;        do {            ds = gDeadScripts;                        /* tell the user this script has been destroyed */            hook->OnScriptDestroyed (ds->script);            /* get next deleted script */            gDeadScripts = NS_REINTERPRET_CAST(DeadScript *,                                               PR_NEXT_LINK(&ds->links));            /* take ourselves out of the circular list */            PR_REMOVE_LINK(&ds->links);            /* addref came from the FromPtr call in jsds_ScriptHookProc */            NS_RELEASE(ds->script);            /* free the struct! */            PR_Free(ds);        } while (&gDeadScripts->links != &ds->links);        /* keep going until we catch up with our tail */    }    gDeadScripts = 0;}