Bug 1283855 part 2 - Make some callback setters take JSContext instead of JSRuntime. r=luke

This commit is contained in:
Jan de Mooij
2016-07-05 11:06:05 +02:00
parent 50de123d98
commit 97cade1c39
7 changed files with 40 additions and 34 deletions

View File

@@ -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);