Null defense in case of early failure under js_NewContext (342180, r=mrbkap).

This commit is contained in:
brendan%mozilla.org 2006-06-20 18:36:34 +00:00
parent 16e4a148ca
commit cd71953372

View File

@ -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,