Loading js/src/jscntxt.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -582,6 +582,7 @@ js_DestroyContext(JSContext *cx, JSDestroyContextMode mode) JSContextCallback cxCallback; JSBool last; rt = cx->runtime; #ifdef JS_THREADSAFE /* * For API compatibility we allow to destroy contexts without a thread in Loading @@ -591,10 +592,9 @@ js_DestroyContext(JSContext *cx, JSDestroyContextMode mode) JS_ASSERT(cx->thread && CURRENT_THREAD_IS_ME(cx->thread)); if (!cx->thread) JS_SetContextThread(cx); #endif rt = cx->runtime; JS_ASSERT_IF(rt->gcRunning, cx->outstandingRequests == 0); #endif if (mode != JSDCM_NEW_FAILED) { cxCallback = rt->cxCallback; Loading Loading
js/src/jscntxt.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -582,6 +582,7 @@ js_DestroyContext(JSContext *cx, JSDestroyContextMode mode) JSContextCallback cxCallback; JSBool last; rt = cx->runtime; #ifdef JS_THREADSAFE /* * For API compatibility we allow to destroy contexts without a thread in Loading @@ -591,10 +592,9 @@ js_DestroyContext(JSContext *cx, JSDestroyContextMode mode) JS_ASSERT(cx->thread && CURRENT_THREAD_IS_ME(cx->thread)); if (!cx->thread) JS_SetContextThread(cx); #endif rt = cx->runtime; JS_ASSERT_IF(rt->gcRunning, cx->outstandingRequests == 0); #endif if (mode != JSDCM_NEW_FAILED) { cxCallback = rt->cxCallback; Loading