Bug 1120063 - include SharedTypedArray in a guard. r=efaust

This commit is contained in:
Lars T Hansen 2015-01-14 16:22:22 +01:00
parent 493792ecf6
commit 3246b0f26a

View File

@ -1413,7 +1413,7 @@ js::DefineNativeProperty(ExclusiveContext *cx, HandleNativeObject obj, HandleId
if (shape) {
// Don't forget about arrays.
if (IsImplicitDenseOrTypedArrayElement(shape)) {
if (obj->is<TypedArrayObject>()) {
if (IsAnyTypedArray(obj)) {
/*
* Silently ignore attempts to change individial index attributes.
* FIXME: Uses the same broken behavior as for accessors. This should