mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
Bugzilla Bug 344199
nsDOMScriptObjectFactory::GetScriptRuntimeByID should fill in the array for fast lookup. Patch by alfred.peng@sun.com mhammond: review+ bzbarsky: superreview+
This commit is contained in:
parent
e8efa41462
commit
09055a889b
@ -187,6 +187,9 @@ nsDOMScriptObjectFactory::GetScriptRuntimeByID(PRUint32 aLanguageID,
|
||||
NS_ERROR("Failed to get the script language");
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Stash it away in our array for fast lookup by ID.
|
||||
mLanguageArray[NS_STID_INDEX(aLanguageID)] = lang;
|
||||
*aLanguage = lang;
|
||||
}
|
||||
NS_IF_ADDREF(*aLanguage);
|
||||
|
Loading…
x
Reference in New Issue
Block a user