Bug 714050 - Make JS source compression thread optional (r=luke)

This commit is contained in:
Bill McCloskey 2012-10-16 11:57:11 -07:00
parent 2d2d33f92b
commit d3f82bacd5

View File

@ -1152,7 +1152,7 @@ ScriptSource::setSourceCopy(JSContext *cx, StableCharPtr src, uint32_t length,
argumentsNotIncluded_ = argumentsNotIncluded;
#ifdef JS_THREADSAFE
if (tok) {
if (tok && cx->runtime->useHelperThreads()) {
#ifdef DEBUG
ready_ = false;
#endif