зеркало из https://github.com/mozilla/gecko-dev.git
Bug 990353 - Flip off source discarding for XPCShell. r=fabrice
This commit is contained in:
Родитель
60ea4d2766
Коммит
8c7cf2c1e6
|
@ -1550,6 +1550,11 @@ XRE_XPCShellMain(int argc, char **argv, char **envp)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Even if we're building in a configuration where source is
|
||||||
|
// discarded, there's no reason to do that on XPCShell, and doing so
|
||||||
|
// might break various automation scripts.
|
||||||
|
JS::CompartmentOptionsRef(glob).setDiscardSource(false);
|
||||||
|
|
||||||
backstagePass->SetGlobalObject(glob);
|
backstagePass->SetGlobalObject(glob);
|
||||||
|
|
||||||
JSAutoCompartment ac(cx, glob);
|
JSAutoCompartment ac(cx, glob);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче