| 170 | |
| 171 | |
| 172 | bool Object::HasBase(ExprTokenType &aValue, IObject *aBase) |
| 173 | { |
| 174 | Object *value_base; |
| 175 | if (auto obj = TokenToObject(aValue)) |
| 176 | value_base = obj->Base(); |
| 177 | else |
| 178 | value_base = Object::ValueBase(aValue); |
| 179 | if (value_base) |
| 180 | return value_base == aBase || value_base->IsDerivedFrom(aBase); |
| 181 | // Otherwise, could be Object::sAnyPrototype or SYM_MISSING (via a variadic call). |
| 182 | return false; |
| 183 | } |
| 184 | |
| 185 | |
| 186 | BIF_DECL(BIF_HasBase) |
nothing calls this directly
no test coverage detected