mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 791566 - Update old new proxy bindings to BaseProxyHandler::hasInstance changes; r=terrence
This commit is contained in:
parent
f86a750c05
commit
e37e5c980c
@ -956,9 +956,10 @@ ListBase<LC>::iterate(JSContext *cx, JSObject *proxy, unsigned flags, Value *vp)
|
||||
|
||||
template<class LC>
|
||||
bool
|
||||
ListBase<LC>::hasInstance(JSContext *cx, JSObject *proxy, const Value *vp, bool *bp)
|
||||
ListBase<LC>::hasInstance(JSContext *cx, JS::HandleObject proxy, JS::MutableHandleValue vp,
|
||||
bool *bp)
|
||||
{
|
||||
*bp = vp->isObject() && js::GetObjectClass(&vp->toObject()) == &sInterfaceClass;
|
||||
*bp = vp.isObject() && js::GetObjectClass(&vp.toObject()) == &sInterfaceClass;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ public:
|
||||
bool iterate(JSContext *cx, JSObject *proxy, unsigned flags, JS::Value *vp);
|
||||
|
||||
/* Spidermonkey extensions. */
|
||||
bool hasInstance(JSContext *cx, JSObject *proxy, const JS::Value *vp, bool *bp);
|
||||
bool hasInstance(JSContext *cx, JS::HandleObject proxy, JS::MutableHandleValue vp, bool *bp);
|
||||
JSString *obj_toString(JSContext *cx, JSObject *proxy);
|
||||
void finalize(JSFreeOp *fop, JSObject *proxy);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user