mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
919587b427
We now have the invariant that any in-use cx must be pushed onto the JSContext stack with one of our stack-scoped automatic nsCxPusher classes. These classes hold a strong ref to the nsIScriptContext associated with the JSContext they push (if any). This means that, if this cx is in use, we will always have at least one strong reference to the nsJSContext coming from the stack, meaning that neither the destructor nor the Unlink() implementation will be called. So we don't need to do any deferred destruction of the cx anymore. |
||
---|---|---|
.. | ||
ductwork/debugger | ||
examples | ||
ipc | ||
jsd | ||
public | ||
src | ||
xpconnect |