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:
Jason Orendorff 2013-03-20 09:59:47 -07:00
parent 827c995879
commit a71916189e
2 changed files with 10 additions and 10 deletions

View File

@ -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
{ {

View File

@ -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___ */