зеркало из https://github.com/mozilla/gecko-dev.git
Added sanity check to insure that a valid JSRuntime was found before passing it to JS_NewContext. Bug 73491. r=mcafee,timeless. sr=alefc.
This commit is contained in:
Родитель
0c67ee0fe1
Коммит
0c13062832
|
@ -283,7 +283,11 @@ PRBool PREF_Init(const char *filename)
|
|||
return PR_FALSE;
|
||||
|
||||
if (!gMochaTaskState)
|
||||
{
|
||||
gMochaTaskState = PREF_GetJSRuntime();
|
||||
if (!gMochaTaskState)
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
if (!gMochaContext)
|
||||
{
|
||||
|
|
|
@ -283,7 +283,11 @@ PRBool PREF_Init(const char *filename)
|
|||
return PR_FALSE;
|
||||
|
||||
if (!gMochaTaskState)
|
||||
{
|
||||
gMochaTaskState = PREF_GetJSRuntime();
|
||||
if (!gMochaTaskState)
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
if (!gMochaContext)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче