Bug 937916 - Implement TrueValue() and FalseValue(). r=sfink

This commit is contained in:
Michael Shuen 2013-11-15 21:46:39 -05:00
parent e85861c8cb
commit 014d210978

View File

@ -1320,6 +1320,22 @@ BooleanValue(bool boo)
return v;
}
static inline Value
TrueValue()
{
Value v;
v.setBoolean(true);
return v;
}
static inline Value
FalseValue()
{
Value v;
v.setBoolean(false);
return v;
}
static inline Value
ObjectValue(JSObject &obj)
{