diff --git a/js/src/xpconnect/loader/mozJSComponentLoader.cpp b/js/src/xpconnect/loader/mozJSComponentLoader.cpp index 476e8d33478c..69a35451ee1b 100644 --- a/js/src/xpconnect/loader/mozJSComponentLoader.cpp +++ b/js/src/xpconnect/loader/mozJSComponentLoader.cpp @@ -337,7 +337,7 @@ mozJSComponentLoader::ReallyInit() return rv; } - rv = wrappedCM->GetJSObject(&mCompMgrWrapper); + rv = holder->GetJSObject(&mCompMgrWrapper); if (NS_FAILED(rv)) { #ifdef DEBUG_shaver fprintf(stderr, "failed to get JSObject for comp mgr wrapper\n");