mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1245048: Check call to GetPrototype; r=till
This commit is contained in:
parent
99d1f70394
commit
0a70d29a1a
@ -365,7 +365,9 @@ intrinsic_FinishBoundFunctionInit(JSContext* cx, unsigned argc, Value* vp)
|
||||
|
||||
// 9.4.1.3 BoundFunctionCreate, steps 2-3,8.
|
||||
RootedObject proto(cx);
|
||||
GetPrototype(cx, targetObj, &proto);
|
||||
if (!GetPrototype(cx, targetObj, &proto))
|
||||
return false;
|
||||
|
||||
if (bound->getProto() != proto) {
|
||||
if (!SetPrototype(cx, bound, proto))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user