Bug 1082141 - Typed objects are not ArrayBufferViews (yet), r=Waldo
☠☠ backed out by 8c579f2507f7 ☠ ☠
authorSteve Fink <sfink@mozilla.com>
Mon, 13 Oct 2014 13:42:59 -0700
changeset 210232 32fae63479051c3b1206c5136a990edfbeb59c48
parent 210231 4030d1c94b175cf15a98691d45943a420207d1ec
child 210233 8c579f2507f73f92e70ae6df843274022976e9a0
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersWaldo
bugs1082141
milestone35.0a1
Bug 1082141 - Typed objects are not ArrayBufferViews (yet), r=Waldo
js/src/vm/ArrayBufferObject.cpp
--- a/js/src/vm/ArrayBufferObject.cpp
+++ b/js/src/vm/ArrayBufferObject.cpp
@@ -980,17 +980,17 @@ ArrayBufferViewObject::trace(JSTracer *t
         obj->initPrivate(buf.dataPointer() + offset);
     }
 }
 
 template <>
 bool
 JSObject::is<js::ArrayBufferViewObject>() const
 {
-    return is<DataViewObject>() || is<TypedArrayObject>() || is<TypedObject>();
+    return is<DataViewObject>() || is<TypedArrayObject>();
 }
 
 void
 ArrayBufferViewObject::neuter(void *newData)
 {
     MOZ_ASSERT(newData != nullptr);
     if (is<DataViewObject>())
         as<DataViewObject>().neuter(newData);