mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 650161 - Allow for the possibility that the wrapper cache hasn't been initialized yet when updating it r=bz
This commit is contained in:
parent
211f9069dd
commit
43b5e6a717
@ -123,8 +123,10 @@ public:
|
||||
*/
|
||||
void UpdateWrapper(JSObject* aNewObject, const JSObject* aOldObject)
|
||||
{
|
||||
MOZ_ASSERT(mWrapper == aOldObject);
|
||||
mWrapper = aNewObject;
|
||||
if (mWrapper) {
|
||||
MOZ_ASSERT(mWrapper == aOldObject);
|
||||
mWrapper = aNewObject;
|
||||
}
|
||||
}
|
||||
|
||||
bool PreservingWrapper()
|
||||
|
Loading…
Reference in New Issue
Block a user