#443: M1395138 M1400554 M1400003 M1407751 M1261175

This commit is contained in:
Cameron Kaiser
2017-10-19 21:55:47 -07:00
parent 9433b647c1
commit 99d4c13d8d
7 changed files with 37 additions and 15 deletions
+2 -3
View File
@@ -350,6 +350,7 @@ void CleanupOSFileConstants()
gInitialized = false;
delete gPaths;
gPaths = nullptr;
}
@@ -848,9 +849,7 @@ bool SetStringProperty(JSContext *cx, JS::Handle<JSObject*> aObject, const char
*/
bool DefineOSFileConstants(JSContext *cx, JS::Handle<JSObject*> global)
{
MOZ_ASSERT(gInitialized);
if (gPaths == nullptr) {
if (!gInitialized || gPaths == nullptr) {
// If an initialization error was ignored, we may end up with
// |gInitialized == true| but |gPaths == nullptr|. We cannot
// |MOZ_ASSERT| this, as this would kill precompile_cache.js,