typed arrays: fix missing type in SizeOfArrayElementForType()
authorDean McNamee <dean@gmail.com>
Fri, 7 Dec 2012 21:02:11 +0000 (22:02 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 17 Dec 2012 16:37:51 +0000 (17:37 +0100)
When Mikael Bourges-Sevenier added support for Uint8ClampedArray in 67fc1da,
the new type was not added to SizeOfArrayElementForType().

src/v8_typed_array.cc

index 41211c9..f5503a9 100644 (file)
@@ -829,6 +829,7 @@ int SizeOfArrayElementForType(v8::ExternalArrayType type) {
   switch (type) {
     case v8::kExternalByteArray:
     case v8::kExternalUnsignedByteArray:
+    case v8::kExternalPixelArray:
       return 1;
     case v8::kExternalShortArray:
     case v8::kExternalUnsignedShortArray: