зеркало из https://github.com/mozilla/pjs.git
bug=420869 backing out as the tree is red.
This commit is contained in:
Родитель
ebdf145ffd
Коммит
19c54144c0
|
@ -238,13 +238,11 @@ ContextCallback(JSContext *cx, uintN operation)
|
|||
{
|
||||
if (operation == JSCONTEXT_NEW)
|
||||
{
|
||||
// Set the limits on the native and script stack space.
|
||||
XPCPerThreadData* tls = XPCPerThreadData::GetData(cx);
|
||||
if(tls)
|
||||
{
|
||||
JS_SetThreadStackLimit(cx, tls->GetStackLimit());
|
||||
}
|
||||
JS_SetScriptStackQuota(cx, 100*1024*1024);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче