mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 756610 - Handle OOM in js_CopyErrorObject. r=bhackett
This commit is contained in:
parent
f587587628
commit
6a44e7c6e3
@ -1180,6 +1180,8 @@ js_CopyErrorObject(JSContext *cx, HandleObject errobj, HandleObject scope)
|
||||
if (!proto)
|
||||
return NULL;
|
||||
JSObject *copyobj = NewObjectWithGivenProto(cx, &ErrorClass, proto, NULL);
|
||||
if (!copyobj)
|
||||
return NULL;
|
||||
SetExnPrivate(cx, copyobj, copy);
|
||||
autoFree.p = NULL;
|
||||
return copyobj;
|
||||
|
Loading…
Reference in New Issue
Block a user