mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-31 21:21:08 +00:00
Null defense in case of early failure under js_NewContext (342180, r=mrbkap).
This commit is contained in:
parent
16e4a148ca
commit
cd71953372
@ -1207,6 +1207,9 @@ js_MarkScriptFilenames(JSRuntime *rt, uintN gcflags)
|
||||
JSCList *head, *link;
|
||||
ScriptFilenamePrefix *sfp;
|
||||
|
||||
if (!rt->scriptFilenameTable)
|
||||
return;
|
||||
|
||||
if (gcflags & GC_KEEP_ATOMS) {
|
||||
JS_HashTableEnumerateEntries(rt->scriptFilenameTable,
|
||||
js_script_filename_marker,
|
||||
|
Loading…
Reference in New Issue
Block a user