Bug 1283855 part 14 - Make more callback setters take JSContext instead of JSRuntime. r=shu

This commit is contained in:
Jan de Mooij
2016-07-05 14:35:26 +02:00
parent 9a35d3fcb0
commit 232d17e931
6 changed files with 20 additions and 20 deletions

View File

@@ -516,7 +516,7 @@ CycleCollectedJSRuntime::Initialize(JSRuntime* aParentRuntime,
if (!JS_AddExtraGCRootsTracer(mJSContext, TraceBlackJS, this)) {
MOZ_CRASH("JS_AddExtraGCRootsTracer failed");
}
JS_SetGrayGCRootsTracer(mJSRuntime, TraceGrayJS, this);
JS_SetGrayGCRootsTracer(mJSContext, TraceGrayJS, this);
JS_SetGCCallback(mJSContext, GCCallback, this);
mPrevGCSliceCallback = JS::SetGCSliceCallback(mJSRuntime, GCSliceCallback);