Don't treat DataViews as typed arrays, bug 785776. r=dvander a=akeybl THUNDERBIRD_16_0b3_BUILD1 THUNDERBIRD_16_0b3_RELEASE
authorBrian Hackett <bhackett1024@gmail.com>
Wed, 29 Aug 2012 15:21:54 -0600
changeset 104845 fd5e4a57e18471160ac4c48ffe50f55331ce492d
parent 104844 bba7734c248d1480d72b67258e627fb8b21f0bfa
child 104846 04f220baf9ae455b11ef3a69a08c444eb8a7b24d
child 104847 1dca6212be3ae981d8a9160caab25a84387439bd
push id1
push usersledru@mozilla.com
push dateThu, 04 Dec 2014 17:57:20 +0000
reviewersdvander, akeybl
bugs785776
milestone16.0
Don't treat DataViews as typed arrays, bug 785776. r=dvander a=akeybl
js/src/jsinferinlines.h
--- a/js/src/jsinferinlines.h
+++ b/js/src/jsinferinlines.h
@@ -1302,17 +1302,16 @@ TypeObject::setFlagsFromKey(JSContext *c
       case JSProto_Uint8Array:
       case JSProto_Int16Array:
       case JSProto_Uint16Array:
       case JSProto_Int32Array:
       case JSProto_Uint32Array:
       case JSProto_Float32Array:
       case JSProto_Float64Array:
       case JSProto_Uint8ClampedArray:
-      case JSProto_DataView:
         flags = OBJECT_FLAG_NON_DENSE_ARRAY
               | OBJECT_FLAG_NON_PACKED_ARRAY
               | OBJECT_FLAG_NON_DOM;
         break;
 
       default:
         flags = OBJECT_FLAG_NON_DENSE_ARRAY
               | OBJECT_FLAG_NON_PACKED_ARRAY