mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
Bug 1003997. r=sfink
This commit is contained in:
parent
cfc7563bf0
commit
ccaf2695e7
@ -970,8 +970,10 @@ ArrayBufferViewObject::bufferObject(JSContext *cx, Handle<ArrayBufferViewObject
|
||||
Rooted<TypedArrayObject *> typedArray(cx, &thisObject->as<TypedArrayObject>());
|
||||
if (!TypedArrayObject::ensureHasBuffer(cx, typedArray))
|
||||
return nullptr;
|
||||
return thisObject->as<TypedArrayObject>().buffer();
|
||||
}
|
||||
return &thisObject->getFixedSlot(BUFFER_SLOT).toObject().as<ArrayBufferObject>();
|
||||
MOZ_ASSERT(thisObject->is<DataViewObject>());
|
||||
return &thisObject->as<DataViewObject>().arrayBuffer();
|
||||
}
|
||||
|
||||
/* JS Friend API */
|
||||
|
@ -367,8 +367,7 @@ template <>
|
||||
inline bool
|
||||
JSObject::is<js::ArrayBufferViewObject>() const
|
||||
{
|
||||
return is<js::DataViewObject>() || is<js::TypedArrayObject>() ||
|
||||
IsTypedObjectClass(getClass());
|
||||
return is<js::DataViewObject>() || is<js::TypedArrayObject>();
|
||||
}
|
||||
|
||||
#endif /* vm_TypedArrayObject_h */
|
||||
|
Loading…
Reference in New Issue
Block a user