mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
298d965f7b
commit
efaffdfe97
@ -123,8 +123,10 @@ public:
|
|||||||
*/
|
*/
|
||||||
void UpdateWrapper(JSObject* aNewObject, const JSObject* aOldObject)
|
void UpdateWrapper(JSObject* aNewObject, const JSObject* aOldObject)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(mWrapper == aOldObject);
|
if (mWrapper) {
|
||||||
mWrapper = aNewObject;
|
MOZ_ASSERT(mWrapper == aOldObject);
|
||||||
|
mWrapper = aNewObject;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PreservingWrapper()
|
bool PreservingWrapper()
|
||||||
|
Loading…
Reference in New Issue
Block a user