More consistent constants in isTrue and isFalse

This commit is contained in:
David Mandelin 2010-05-25 16:52:56 -07:00
parent 7cc758c9de
commit edabf67815

View File

@ -3233,12 +3233,12 @@ class Value
bool isTrue() const {
return data.s.mask32 == JSVAL_MASK32_BOOLEAN &&
data.s.payload.boo == JSBool(true);
data.s.payload.boo == JS_TRUE;
}
bool isFalse() const {
return data.s.mask32 == JSVAL_MASK32_BOOLEAN &&
data.s.payload.boo == false;
data.s.payload.boo == JS_FALSE;
}
bool isMagic() const {