From 086e3489a64947964558edebee41fab8b8759523 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Fri, 30 May 2014 15:02:42 -0700 Subject: [PATCH] Bug 1015791 - Stop assuming that all TypedArray classes are initialized simultaneously. r=luke --- js/src/vm/GlobalObject.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/js/src/vm/GlobalObject.h b/js/src/vm/GlobalObject.h index 169c05aa493c..568db55505aa 100644 --- a/js/src/vm/GlobalObject.h +++ b/js/src/vm/GlobalObject.h @@ -245,15 +245,10 @@ class GlobalObject : public JSObject bool dataViewClassInitialized() const { return classIsInitialized(JSProto_DataView); } - bool typedArrayClassesInitialized() const { - // This alias exists only for clarity: in reality all the typed array - // classes constitute a (semi-)coherent whole. - return classIsInitialized(JSProto_DataView); - } Value createArrayFromBufferHelper(uint32_t slot) const { - JS_ASSERT(typedArrayClassesInitialized()); JS_ASSERT(FROM_BUFFER_UINT8 <= slot && slot <= FROM_BUFFER_UINT8CLAMPED); + JS_ASSERT(!getSlot(slot).isUndefined()); return getSlot(slot); }