mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 791608 (part 4) - Fix compile warnings about ObjectImpl::getClass(). r=jwalden.
--HG-- extra : rebase_source : dc15218ede7135a3487cb31997e532abccd0d256
This commit is contained in:
parent
e0b4a1beaa
commit
8faad9e827
@ -5698,7 +5698,7 @@ JSObject::makeLazyType(JSContext *cx)
|
||||
if (self->isSlowArray())
|
||||
type->flags |= OBJECT_FLAG_NON_DENSE_ARRAY | OBJECT_FLAG_NON_PACKED_ARRAY;
|
||||
|
||||
if (IsTypedArrayProto(self))
|
||||
if (IsTypedArrayProtoClass(self->getClass()))
|
||||
type->flags |= OBJECT_FLAG_NON_TYPED_ARRAY;
|
||||
|
||||
self->type_ = type;
|
||||
|
@ -286,18 +286,6 @@ IsTypedArrayProtoClass(const Class *clasp)
|
||||
clasp < &TypedArray::protoClasses[TypedArray::TYPE_MAX];
|
||||
}
|
||||
|
||||
inline bool
|
||||
IsTypedArray(JSObject *obj)
|
||||
{
|
||||
return IsTypedArrayClass(obj->getClass());
|
||||
}
|
||||
|
||||
inline bool
|
||||
IsTypedArrayProto(JSObject *obj)
|
||||
{
|
||||
return IsTypedArrayProtoClass(obj->getClass());
|
||||
}
|
||||
|
||||
class DataViewObject : public JSObject
|
||||
{
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user