зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1255817 part 4. Make XPCJSRuntime use MozCrashErrorReporter by default, now that there should be no stray JS_ReportPendingException calls. r=bholley
This commit is contained in:
Родитель
c4652e0bab
Коммит
fb54936d49
|
@ -3509,7 +3509,6 @@ XPCJSRuntime::Initialize()
|
|||
kStackQuota - kSystemCodeBuffer,
|
||||
kStackQuota - kSystemCodeBuffer - kTrustedScriptBuffer);
|
||||
|
||||
JS_SetErrorReporter(runtime, xpc::SystemErrorReporter);
|
||||
JS_SetDestroyCompartmentCallback(runtime, CompartmentDestroyedCallback);
|
||||
JS_SetSizeOfIncludingThisCompartmentCallback(runtime, CompartmentSizeOfIncludingThisCallback);
|
||||
JS_SetCompartmentNameCallback(runtime, CompartmentNameCallback);
|
||||
|
|
|
@ -528,8 +528,6 @@ CycleCollectedJSRuntime::Initialize(JSRuntime* aParentRuntime,
|
|||
JS_SetDestroyZoneCallback(mJSRuntime, XPCStringConvert::FreeZoneCache);
|
||||
JS_SetSweepZoneCallback(mJSRuntime, XPCStringConvert::ClearZoneCache);
|
||||
JS::SetBuildIdOp(mJSRuntime, GetBuildId);
|
||||
// XPCJSRuntime currently overrides this because we don't
|
||||
// TakeOwnershipOfErrorReporting everwhere on the main thread yet.
|
||||
JS_SetErrorReporter(mJSRuntime, MozCrashErrorReporter);
|
||||
|
||||
static js::DOMCallbacks DOMcallbacks = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче