mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 592930 - TM: set right compartment for mozJSComponentLoader::ModuleEntry::Clear r=mrbkap
This commit is contained in:
parent
6c6b045b0d
commit
e9d53dc7ea
@ -174,6 +174,7 @@ class mozJSComponentLoader : public mozilla::ModuleLoader,
|
||||
|
||||
if (global) {
|
||||
JSAutoRequest ar(sSelf->mContext);
|
||||
JSAutoEnterCompartment ac(sSelf->mContext, global);
|
||||
JS_ClearScope(sSelf->mContext, global);
|
||||
JS_RemoveObjectRoot(sSelf->mContext, &global);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user