Bug 1283855 part 2 - Make some callback setters take JSContext instead of JSRuntime. r=luke
This commit is contained in:
@@ -536,8 +536,8 @@ CycleCollectedJSRuntime::Initialize(JSRuntime* aParentRuntime,
|
||||
JS::SetOutOfMemoryCallback(mJSRuntime, OutOfMemoryCallback, this);
|
||||
JS::SetLargeAllocationFailureCallback(mJSRuntime,
|
||||
LargeAllocationFailureCallback, this);
|
||||
JS_SetDestroyZoneCallback(mJSRuntime, XPCStringConvert::FreeZoneCache);
|
||||
JS_SetSweepZoneCallback(mJSRuntime, XPCStringConvert::ClearZoneCache);
|
||||
JS_SetDestroyZoneCallback(mJSContext, XPCStringConvert::FreeZoneCache);
|
||||
JS_SetSweepZoneCallback(mJSContext, XPCStringConvert::ClearZoneCache);
|
||||
JS::SetBuildIdOp(mJSRuntime, GetBuildId);
|
||||
JS::SetWarningReporter(mJSRuntime, MozCrashWarningReporter);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user