mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Default new contexts to a NULL compartment (bug 623800, r=dmandelin).
This commit is contained in:
parent
66315defbc
commit
5f17a91711
@ -1992,7 +1992,7 @@ DSTOffsetCache::DSTOffsetCache()
|
||||
|
||||
JSContext::JSContext(JSRuntime *rt)
|
||||
: runtime(rt),
|
||||
compartment(rt->defaultCompartment),
|
||||
compartment(NULL),
|
||||
regs(NULL),
|
||||
busyArrays(thisInInitializer())
|
||||
{}
|
||||
|
@ -7589,10 +7589,6 @@ disable_debugger_exceptions() { }
|
||||
void
|
||||
SetMaxCodeCacheBytes(JSContext* cx, uint32 bytes)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
TraceMonitor* tm = &JS_TRACE_MONITOR(cx);
|
||||
JS_ASSERT(tm->codeAlloc && tm->dataAlloc && tm->traceAlloc);
|
||||
#endif
|
||||
if (bytes > 1 G)
|
||||
bytes = 1 G;
|
||||
if (bytes < 128 K)
|
||||
|
Loading…
Reference in New Issue
Block a user