mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1111201: Check for OOM when calling an asm.js function with new; r=evilpie
This commit is contained in:
parent
5381d57cba
commit
d26e469b50
@ -768,6 +768,8 @@ CallAsmJS(JSContext* cx, unsigned argc, Value* vp)
|
|||||||
// functions, the returned value is discarded and an empty object is
|
// functions, the returned value is discarded and an empty object is
|
||||||
// returned instead.
|
// returned instead.
|
||||||
PlainObject* obj = NewBuiltinClassInstance<PlainObject>(cx);
|
PlainObject* obj = NewBuiltinClassInstance<PlainObject>(cx);
|
||||||
|
if (!obj)
|
||||||
|
return false;
|
||||||
callArgs.rval().set(ObjectValue(*obj));
|
callArgs.rval().set(ObjectValue(*obj));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user