diff --git a/js/src/jsscript.cpp b/js/src/jsscript.cpp index cf18bb907b39..7b9aeea74d4e 100644 --- a/js/src/jsscript.cpp +++ b/js/src/jsscript.cpp @@ -981,7 +981,7 @@ js::SaveScriptFilename(JSContext *cx, const char *filename) * scripts or exceptions pointing to the filename may no longer be * reachable. */ - if (cx->compartment->needsBarrier() && rt->gcIsFull) + if (rt->gcIncrementalState == MARK && rt->gcIsFull) sfe->marked = true; #endif