mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 929221 - Correctly handle OOM in EnsureTrackPropertyTypes. r=bhackett
This commit is contained in:
parent
e917d10bb6
commit
f7d388a9d5
@ -387,8 +387,10 @@ EnsureTrackPropertyTypes(JSContext *cx, JSObject *obj, jsid id)
|
||||
cx->clearPendingException();
|
||||
return;
|
||||
}
|
||||
if (!obj->type()->unknownProperties())
|
||||
obj->type()->getProperty(cx, id);
|
||||
if (!obj->type()->unknownProperties() && !obj->type()->getProperty(cx, id)) {
|
||||
cx->compartment()->types.setPendingNukeTypes(cx);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
JS_ASSERT(obj->type()->unknownProperties() || TrackPropertyTypes(cx, obj, id));
|
||||
|
Loading…
Reference in New Issue
Block a user