From d3f82bacd508dca6f43b98c4ac0f6b36de025a41 Mon Sep 17 00:00:00 2001 From: Bill McCloskey Date: Tue, 16 Oct 2012 11:57:11 -0700 Subject: [PATCH] Bug 714050 - Make JS source compression thread optional (r=luke) --- js/src/jsscript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsscript.cpp b/js/src/jsscript.cpp index 7663ff874ee7..b5fb1ad709d7 100644 --- a/js/src/jsscript.cpp +++ b/js/src/jsscript.cpp @@ -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