mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 825545 followup - Fix building threadless shell. r=me
This commit is contained in:
parent
e1c62edda8
commit
baf37e6ee8
@ -1192,9 +1192,12 @@ ScriptSource::substring(JSContext *cx, uint32_t start, uint32_t stop)
|
||||
const jschar *chars;
|
||||
#if USE_ZLIB
|
||||
Rooted<JSStableString *> cached(cx, NULL);
|
||||
#ifdef JS_THREADSAFE
|
||||
if (!ready()) {
|
||||
chars = cx->runtime->sourceCompressorThread.currentChars();
|
||||
} else if (compressed()) {
|
||||
} else
|
||||
#endif
|
||||
if (compressed()) {
|
||||
cached = cx->runtime->sourceDataCache.lookup(this);
|
||||
if (!cached) {
|
||||
const size_t nbytes = sizeof(jschar) * (length_ + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user