From 1c265c54a20a6f5c6d50ce671dc5df6901d11221 Mon Sep 17 00:00:00 2001 From: Dean McNamee Date: Fri, 7 Dec 2012 22:02:11 +0100 Subject: [PATCH] typed arrays: fix missing type in SizeOfArrayElementForType() When Mikael Bourges-Sevenier added support for Uint8ClampedArray in 67fc1da, the new type was not added to SizeOfArrayElementForType(). --- src/v8_typed_array.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/v8_typed_array.cc b/src/v8_typed_array.cc index 41211c901e2..f5503a90d5c 100644 --- a/src/v8_typed_array.cc +++ b/src/v8_typed_array.cc @@ -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: