mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix breakage caused by 9e684559ec7f (bug 852761) by making inline method JSFunction::getBoundFunctionTarget available to the shell. rs=luke on a CLOSED TREE.
This commit is contained in:
parent
827c995879
commit
a71916189e
@ -1027,16 +1027,6 @@ JSFunction::initBoundFunction(JSContext *cx, HandleValue thisArg,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline JSObject *
|
|
||||||
JSFunction::getBoundFunctionTarget() const
|
|
||||||
{
|
|
||||||
JS_ASSERT(isFunction());
|
|
||||||
JS_ASSERT(isBoundFunction());
|
|
||||||
|
|
||||||
/* Bound functions abuse |parent| to store their target function. */
|
|
||||||
return getParent();
|
|
||||||
}
|
|
||||||
|
|
||||||
inline const js::Value &
|
inline const js::Value &
|
||||||
JSFunction::getBoundFunctionThis() const
|
JSFunction::getBoundFunctionThis() const
|
||||||
{
|
{
|
||||||
|
@ -208,4 +208,14 @@ JSFunction::initScript(JSScript *script_)
|
|||||||
mutableScript().init(script_);
|
mutableScript().init(script_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline JSObject *
|
||||||
|
JSFunction::getBoundFunctionTarget() const
|
||||||
|
{
|
||||||
|
JS_ASSERT(isFunction());
|
||||||
|
JS_ASSERT(isBoundFunction());
|
||||||
|
|
||||||
|
/* Bound functions abuse |parent| to store their target function. */
|
||||||
|
return getParent();
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* jsfuninlines_h___ */
|
#endif /* jsfuninlines_h___ */
|
||||||
|
Loading…
Reference in New Issue
Block a user