diff --git a/js/src/jscntxt.cpp b/js/src/jscntxt.cpp index 09334ac512e..cb607debef1 100644 --- a/js/src/jscntxt.cpp +++ b/js/src/jscntxt.cpp @@ -631,7 +631,7 @@ js_DestroyContext(JSContext *cx, JSDestroyContextMode mode) || cx->requestDepth != 0 #endif ) { - JS_ASSERT(rt->gcLevel == 0); + JS_ASSERT(!rt->gcRunning); JS_UNLOCK_GC(rt);