Bug 722734. Add const signatures for converting back and forth between JS::Class and JSClass. r=mrbkap

This commit is contained in:
Boris Zbarsky 2012-01-31 17:14:56 -05:00
parent a8531542b4
commit b9917f3e19

View File

@ -386,12 +386,22 @@ Jsvalify(Class *c)
{
return (JSClass *)c;
}
static JS_ALWAYS_INLINE const JSClass *
Jsvalify(const Class *c)
{
return (const JSClass *)c;
}
static JS_ALWAYS_INLINE Class *
Valueify(JSClass *c)
{
return (Class *)c;
}
static JS_ALWAYS_INLINE const Class *
Valueify(const JSClass *c)
{
return (const Class *)c;
}
/*
* Enumeration describing possible values of the [[Class]] internal property